2022-08-13 10:56:07 +02:00
|
|
|
import { Trans } from "@lingui/macro"
|
|
|
|
|
import { Container, Tabs } from "@mantine/core"
|
2023-05-05 14:55:03 +02:00
|
|
|
import { CustomCss } from "components/settings/CustomCss"
|
2022-08-13 10:56:07 +02:00
|
|
|
import { DisplaySettings } from "components/settings/DisplaySettings"
|
|
|
|
|
import { ProfileSettings } from "components/settings/ProfileSettings"
|
2023-05-05 14:03:28 +02:00
|
|
|
import { TbBoxMargin, TbPhoto, TbUser } from "react-icons/tb"
|
2022-08-13 10:56:07 +02:00
|
|
|
|
|
|
|
|
export function SettingsPage() {
|
|
|
|
|
return (
|
|
|
|
|
<Container size="sm" px={0}>
|
|
|
|
|
<Tabs defaultValue="display">
|
|
|
|
|
<Tabs.List>
|
2023-05-05 14:03:28 +02:00
|
|
|
<Tabs.Tab value="display" icon={<TbPhoto size={16} />}>
|
2022-08-13 10:56:07 +02:00
|
|
|
<Trans>Display</Trans>
|
|
|
|
|
</Tabs.Tab>
|
2023-05-05 14:03:28 +02:00
|
|
|
<Tabs.Tab value="customCss" icon={<TbBoxMargin size={16} />}>
|
|
|
|
|
<Trans>Custom CSS</Trans>
|
|
|
|
|
</Tabs.Tab>
|
|
|
|
|
<Tabs.Tab value="profile" icon={<TbUser size={16} />}>
|
2022-08-13 10:56:07 +02:00
|
|
|
<Trans>Profile</Trans>
|
|
|
|
|
</Tabs.Tab>
|
|
|
|
|
</Tabs.List>
|
|
|
|
|
|
|
|
|
|
<Tabs.Panel value="display" pt="xl">
|
|
|
|
|
<DisplaySettings />
|
|
|
|
|
</Tabs.Panel>
|
|
|
|
|
|
2023-05-05 14:03:28 +02:00
|
|
|
<Tabs.Panel value="customCss" pt="xl">
|
|
|
|
|
<CustomCss />
|
|
|
|
|
</Tabs.Panel>
|
|
|
|
|
|
2022-08-13 10:56:07 +02:00
|
|
|
<Tabs.Panel value="profile" pt="xl">
|
|
|
|
|
<ProfileSettings />
|
|
|
|
|
</Tabs.Panel>
|
|
|
|
|
</Tabs>
|
|
|
|
|
</Container>
|
|
|
|
|
)
|
|
|
|
|
}
|