import { useMantineColorScheme, SegmentedControl, rem, MantineColorScheme, Tooltip, } from "@mantine/core"; import { IconMoonFilled, IconSunFilled, IconUserFilled, } from "@tabler/icons-react"; import { FC } from "react"; export const ThemeSelector: FC = () => { const { colorScheme, setColorScheme } = useMantineColorScheme(); const iconProps = { style: { width: rem(20), height: rem(20), display: "block" }, stroke: 1.5, }; return ( setColorScheme(v as MantineColorScheme)} data={[ { value: "light", label: ( ), }, { value: "dark", label: ( ), }, { value: "auto", label: ( ), }, ]} /> ); };