import { HStack, IconButton } from "@chakra-ui/react"; import type {ComponentProps} from "react"; import { FaRegSquareMinus, FaRegSquarePlus } from "react-icons/fa6"; export interface ExpandCollapseProps { onClick: (val: boolean) => void, size?: string } export const ExpandCollapse = (props: ExpandCollapseProps & ComponentProps) => { const { onClick, ...rest } = props; return ( props.onClick(false)} > props.onClick(true)} > ) }