import { FC, useState } from "react"; import { Observer } from "mobx-react-lite"; import type { AlertStore } from "Stores/AlertStore"; import type { Settings } from "Stores/Settings"; import { Tab } from "Components/Modal/Tab"; import { Configuration } from "./Configuration"; import { Help } from "./Help"; export type OpenTabT = "configuration" | "help"; const MainModalContent: FC<{ alertStore: AlertStore; settingsStore: Settings; onHide: () => void; openTab?: OpenTabT; expandAllOptions: boolean; }> = ({ alertStore, settingsStore, onHide, openTab = "configuration", expandAllOptions, }) => { const [tab, setTab] = useState(openTab); return ( <>
{tab === "help" ? : null} {tab === "configuration" ? ( ) : null}
{() => alertStore.info.authentication.enabled ? ( Username: {alertStore.info.authentication.username} ) : null } {() => ( Version: {alertStore.info.version} )}
); }; export { MainModalContent };