import { classnames } from '../../helpers' ; import Icon , { IconSize } from '../icon/Icon' ; interface Props { className ? : string ; isOpen ? : boolean ; size ? : IconSize ; } const DropdownCaret = ( { className , isOpen , size = 12 } ) => { return < Icon className = { classnames ( [ isOpen && 'rotateX-180' , className ] ) } size = { size } name = "angle-down" / > ; } ; export default DropdownCaret ;