import React from 'react'; import Icon from '@leafygreen-ui/icon'; type IndexDirection = number | string; const IndexIcon = ({ direction }: { direction: IndexDirection }) => { return direction === 1 ? ( ) : direction === -1 ? ( ) : ( ({String(direction)}) ); }; export default IndexIcon;