import React, { forwardRef, useCallback } from 'react';
import ArrowDownSm from '@lunit/design-system-icons/ArrowDownSm';
import { DropdownProps } from './Dropdown.types';
import { StyledSelect } from './Dropdown.styled';
import { SvgIconProps } from '@mui/material';
const Dropdown = forwardRef((props: DropdownProps, ref) => {
const { select = 'single', size = 'medium', className, children, sx, ...restProps } = props;
const IconComponent = useCallback(
(iconProps: SvgIconProps) => ,
[],
);
return (
theme.palette.lunit_token.core.bg_02,
},
className: `elevation2 ${className || 'light1'}`,
},
slotProps: {
list: {
sx: {
'& .singleChecked': {
display: select === 'single' ? 'inherit' : 'none',
},
'& .multipleChecked': {
display: select === 'multiple' ? 'inherit !important' : 'none',
},
},
},
},
}}
sx={sx}
selectSize={size}
{...restProps}
ref={ref}
>
{children}
);
});
export default Dropdown;