// @mui import Checkbox from '@mui/material/Checkbox'; import Typography from '@mui/material/Typography'; import Stack, { StackProps } from '@mui/material/Stack'; // ---------------------------------------------------------------------- interface Props extends StackProps { dense?: boolean; action?: React.ReactNode; rowCount: number; numSelected: number; onSelectAllRows: (checked: boolean) => void; } export default function TableSelectedAction({ dense, action, rowCount, numSelected, onSelectAllRows, sx, ...other }: Props) { if (!numSelected) { return null; } return ( ) => onSelectAllRows(event.target.checked) } /> {numSelected} selected {action && action} ); }