mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
17 lines
344 B
TypeScript
17 lines
344 B
TypeScript
import { observer } from "mobx-react";
|
|
import * as React from "react";
|
|
import useStores from "hooks/useStores";
|
|
|
|
function LoadingIndicator() {
|
|
const { ui } = useStores();
|
|
|
|
React.useEffect(() => {
|
|
ui.enableProgressBar();
|
|
return () => ui.disableProgressBar();
|
|
}, [ui]);
|
|
|
|
return null;
|
|
}
|
|
|
|
export default observer(LoadingIndicator);
|