import { type IconButtonProps, IconButton as MuiIconButton, Tooltip } from '@mui/material'; import { makeStyles } from 'tss-react/mui'; import { getNormalizedId } from '../../utils'; const useStyles = makeStyles()((theme) => ({ button: { padding: theme.spacing(0.25) }, tooltip: { background: theme.palette.background.tooltip } })); type Props = { ariaLabel?: string; dataTestid?: string; className?: string; onClick: (event: React.MouseEvent) => void; title?: string | JSX.Element; tooltipClassName?: string; tooltipPlacement?: | 'bottom' | 'left' | 'right' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start'; } & IconButtonProps; export const IconButton = ({ title = '', ariaLabel, className, dataTestid, tooltipPlacement, tooltipClassName, ...props }: Props): JSX.Element => { const { classes, cx } = useStyles(); return ( ); }; export default IconButton;