import { useMantineColorScheme, useMantineTheme, Switch, MantineStyleSystemProps, DefaultProps } from '@mantine/core'; import { IconSun, IconMoonStars } from '@tabler/icons-react'; import React from 'react'; interface ColorSchemeToggleProps extends MantineStyleSystemProps, DefaultProps {} const ColorSchemeToggle = ( props: ColorSchemeToggleProps ) => { const { colorScheme, toggleColorScheme } = useMantineColorScheme(); const theme = useMantineTheme(); return ( toggleColorScheme()} size="lg" onLabel={} offLabel={} /> ); }; export default ColorSchemeToggle;