/* * Copyright (c) Facebook, Inc. and its affiliates. */ import {memo} from 'react'; import cn from 'classnames'; import type {SVGProps} from 'react'; export const IconArrowSmall = memo< SVGProps & { /** * The direction the arrow should point. * `start` and `end` are relative to the current locale. * for example, in LTR, `start` is left and `end` is right. */ displayDirection: 'start' | 'end' | 'right' | 'left' | 'up' | 'down'; } >(function IconArrowSmall({displayDirection, className, ...rest}) { const classes = cn(className, { 'rotate-180': displayDirection === 'left', 'rotate-180 rtl:rotate-0': displayDirection === 'start', 'rotate-90': displayDirection === 'down', }); return ( ); });