}
defaultValue={selectedOptions}
IconComponent={ExpandMore}
startAdornment={
!hideClearIcon && (
closeFilter(groupIndex, optionIndex)}>
)
}
MenuProps={{
anchorOrigin: {
vertical: "bottom",
horizontal: "left",
},
transformOrigin: {
vertical: "top",
horizontal: "left",
},
className: "select-menu-prop",
}}
renderValue={(selected: Option[]) =>
(
{label}:
{selected?.length > 0 ? (selected.map((item) => item.label).reverse().join(', ')) : 'All'}
)}
>
{type !== 'created_on' && (
filteredOptions(e.target.value)}>
}
aria-controls="panel1a-content"
id="panel1a-header"
>
0 ? handleDeselectAll : handleSelectAll}
indeterminate={(options && selectedOptions.length > 0) && selectedOptions.length < options?.length}
/>
}
label={`SELECTION (${selectedOptions.length})`}
/>
{selectedOptions?.map(option => (
))}
{
searchText ? (
filteredUnSelectedOptions?.map(option => (
))
) : (
unselectedOptions?.map(option => (
))
)
}
)}
)
}
export default FilterDropdown