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