import React from "react"; import { IconLayoutSidebarRightCollapse, IconLayoutSidebarRightExpand } from "@tabler/icons-react"; import { ActionIcon, BoxProps, ElementProps, MantineColor, MantineSize } from "@mantine/core"; export interface SidebarToggleProps extends BoxProps, ElementProps<"button"> { size?: MantineSize | `compact-${MantineSize}` | (string & {}); color?: MantineColor; opened?: boolean; } const SidebarToggle = React.forwardRef( ({ opened, size = "sm", ...others }, ref) => { return ( {opened ? ( ) : ( )} ); } ); export default SidebarToggle;