2022-04-01 21:41:53 +02:00
|
|
|
import Notifications from "./features/notifications/NotificationWrapper";
|
|
|
|
|
import CircleProgressbar from "./features/progress/CircleProgressbar";
|
|
|
|
|
import Progressbar from "./features/progress/Progressbar";
|
|
|
|
|
import TextUI from "./features/textui/TextUI";
|
|
|
|
|
import InputDialog from "./features/dialog/InputDialog";
|
2022-07-26 15:35:22 +02:00
|
|
|
import ContextMenu from "./features/menu/context/ContextMenu";
|
2022-04-30 14:49:49 +02:00
|
|
|
import Settings from "./features/settings";
|
2022-04-17 18:22:19 +02:00
|
|
|
import { useNuiEvent } from "./hooks/useNuiEvent";
|
|
|
|
|
import { setClipboard } from "./utils/setClipboard";
|
2022-04-30 14:49:49 +02:00
|
|
|
import { fetchNui } from "./utils/fetchNui";
|
2022-06-11 11:33:15 +02:00
|
|
|
import AlertDialog from "./features/dialog/AlertDialog";
|
2022-07-26 15:35:22 +02:00
|
|
|
import ListMenu from "./features/menu/list";
|
2022-04-01 21:41:53 +02:00
|
|
|
|
|
|
|
|
const App: React.FC = () => {
|
2022-04-17 18:22:19 +02:00
|
|
|
useNuiEvent("setClipboard", (data: string) => {
|
|
|
|
|
setClipboard(data);
|
|
|
|
|
});
|
|
|
|
|
|
2022-04-30 14:49:49 +02:00
|
|
|
fetchNui("init");
|
|
|
|
|
|
2022-04-01 21:41:53 +02:00
|
|
|
return (
|
|
|
|
|
<>
|
2022-04-30 14:49:49 +02:00
|
|
|
<Settings />
|
2022-04-01 21:41:53 +02:00
|
|
|
<Progressbar />
|
|
|
|
|
<CircleProgressbar />
|
|
|
|
|
<Notifications />
|
|
|
|
|
<TextUI />
|
|
|
|
|
<InputDialog />
|
2022-06-11 11:33:15 +02:00
|
|
|
<AlertDialog />
|
2022-04-01 21:41:53 +02:00
|
|
|
<ContextMenu />
|
2022-07-26 15:35:22 +02:00
|
|
|
<ListMenu />
|
2022-04-01 21:41:53 +02:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default App;
|