import App from "@/App.tsx"; import "@/assets/global.css"; import { Tab, TabList } from "@fluentui/react-components"; import ReactDOM from "react-dom/client"; import { useOptionsStyles } from "./hooks/useOptionsStyles.ts"; import AboutSection from "./layouts/AboutSection.tsx"; import ActionsSection from "./layouts/ActionsSection.tsx"; import GeneralSection from "./layouts/GeneralSection.tsx"; import StorageSection from "./layouts/StorageSection.tsx"; ReactDOM.createRoot(document.getElementById("root")!).render( ); analytics.page("options_page"); function OptionsPage(): React.ReactElement { const [selection, setSelection] = useState("general"); const cls = useOptionsStyles(); return (
setSelection(data.value as SelectionType) } > { i18n.t("options_page.general.title") } { i18n.t("options_page.actions.title") } { i18n.t("options_page.storage.title") } { i18n.t("options_page.about.title") }
{ selection === "general" && } { selection === "actions" && } { selection === "storage" && } { selection === "about" && }
); } type SelectionType = "general" | "actions" | "storage" | "about";