import { Button, ButtonProps, forwardRef, Tooltip, TooltipProps, } from '@chakra-ui/react'; import { memo, ReactNode } from 'react'; export interface IAIButtonProps extends ButtonProps { tooltip?: string; tooltipProps?: Omit; isChecked?: boolean; children: ReactNode; } const IAIButton = forwardRef((props: IAIButtonProps, forwardedRef) => { const { children, tooltip = '', tooltipProps, isChecked, ...rest } = props; return ( ); }); export default memo(IAIButton);