1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
import styles from './Arrow.module.scss'; type ArrowDirection = 'top' | 'right' | 'bottom' | 'left'; const ArrowIcon = ({ direction = 'right' }: { direction?: ArrowDirection }) => { if (direction === 'top') { return ( ); } if (direction === 'bottom') { return ( ); } if (direction === 'left') { return ( ); } return ( ); }; export default ArrowIcon; t.tsx?h=v1.0.0&id=ab355897a12b7bda1089a44de326d41455a0f7a3'>diffstats