import React from 'react'; import IconButton from '@mui/material/IconButton'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import RemoveIcon from '@mui/icons-material/Remove'; const ExpandButton = ({ areAllRowsExpanded, buttonClass, expandableRowsHeader, expandedRows, iconClass, iconIndeterminateClass, isHeaderCell, onExpand, }) => { return ( <> {isHeaderCell && !areAllRowsExpanded() && areAllRowsExpanded && expandedRows.data.length > 0 ? ( ) : ( )} ); }; export default ExpandButton;