2022-08-13 10:56:07 +02:00
|
|
|
import { Trans } from "@lingui/macro"
|
|
|
|
|
import { Container, Tabs } from "@mantine/core"
|
2023-05-05 18:28:31 +02:00
|
|
|
import { CustomCodeSettings } from "components/settings/CustomCodeSettings"
|
2022-08-13 10:56:07 +02:00
|
|
|
import { DisplaySettings } from "components/settings/DisplaySettings"
|
|
|
|
|
import { ProfileSettings } from "components/settings/ProfileSettings"
|
2023-05-05 18:28:31 +02:00
|
|
|
import { TbCode, TbPhoto, TbUser } from "react-icons/tb"
|
2022-08-13 10:56:07 +02:00
|
|
|
|
|
|
|
|
export function SettingsPage() {
|
|
|
|
|
return (
|
|
|
|
|
<Container size="sm" px={0}>
|
2023-06-22 16:30:00 +02:00
|
|
|
<Tabs defaultValue="display" keepMounted={false}>
|
2022-08-13 10:56:07 +02:00
|
|
|
<Tabs.List>
|
2023-12-29 23:09:30 +01:00
|
|
|
<Tabs.Tab value="display" leftSection={<TbPhoto size={16} />}>
|
2022-08-13 10:56:07 +02:00
|
|
|
<Trans>Display</Trans>
|
|
|
|
|
</Tabs.Tab>
|
2023-12-29 23:09:30 +01:00
|
|
|
<Tabs.Tab value="customCode" leftSection={<TbCode size={16} />}>
|
2023-05-05 18:28:31 +02:00
|
|
|
<Trans>Custom code</Trans>
|
2023-05-05 14:03:28 +02:00
|
|
|
</Tabs.Tab>
|
2023-12-29 23:09:30 +01:00
|
|
|
<Tabs.Tab value="profile" leftSection={<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 18:28:31 +02:00
|
|
|
<Tabs.Panel value="customCode" pt="xl">
|
|
|
|
|
<CustomCodeSettings />
|
2023-05-05 14:03:28 +02:00
|
|
|
</Tabs.Panel>
|
|
|
|
|
|
2022-08-13 10:56:07 +02:00
|
|
|
<Tabs.Panel value="profile" pt="xl">
|
|
|
|
|
<ProfileSettings />
|
|
|
|
|
</Tabs.Panel>
|
|
|
|
|
</Tabs>
|
|
|
|
|
</Container>
|
|
|
|
|
)
|
|
|
|
|
}
|