/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {memo} from 'react'; export const IconChevron = memo< JSX.IntrinsicElements['svg'] & { /** * The direction the arrow should point. */ displayDirection: 'right' | 'left'; } >(function IconChevron({className, displayDirection, ...props}) { const rotationClass = displayDirection === 'left' ? 'rotate-90' : '-rotate-90'; const classes = className ? `${rotationClass} ${className}` : rotationClass; return ( ); });