import { ActionIcon, Space, createStyles } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { IconChevronLeft, IconChevronRight } from '@tabler/icons-react'; import { useConfigContext } from '~/config/provider'; import { useScreenLargerThan } from '~/hooks/useScreenLargerThan'; import { MobileRibbonSidebarDrawer } from './MobileRibbonSidebarDrawer'; export const MobileRibbons = () => { const { classes, cx } = useStyles(); const { config } = useConfigContext(); const [openedRight, rightSidebar] = useDisclosure(false); const [openedLeft, leftSidebar] = useDisclosure(false); const screenLargerThanMd = useScreenLargerThan('md'); if (screenLargerThanMd || !config) { return <>>; } const layoutSettings = config.settings.customization.layout; return (