forked from roy-jung/react.dev.ko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIconArrow.tsx
More file actions
28 lines (26 loc) · 734 Bytes
/
Copy pathIconArrow.tsx
File metadata and controls
28 lines (26 loc) · 734 Bytes
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
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
import {memo} from 'react';
import cn from 'classnames';
export const IconArrow = memo<
JSX.IntrinsicElements['svg'] & {
displayDirection: 'left' | 'right' | 'up' | 'down';
}
>(function IconArrow({displayDirection, className, ...rest}) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="1.33em"
height="1.33em"
fill="currentColor"
{...rest}
className={cn(className, {
'rotate-180': displayDirection === 'right',
})}>
<path fill="none" d="M0 0h24v24H0z" />
<path d="M7.828 11H20v2H7.828l5.364 5.364-1.414 1.414L4 12l7.778-7.778 1.414 1.414z" />
</svg>
);
});