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