28 lines
652 B
TypeScript
28 lines
652 B
TypeScript
import { SVGProps, Ref, forwardRef, memo } from "react";
|
|
import { cn } from "../utils";
|
|
const SvgComponent = (
|
|
props: SVGProps<SVGSVGElement>,
|
|
ref: Ref<SVGSVGElement>
|
|
) => (
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 24 24"
|
|
ref={ref}
|
|
className={cn(`text-current`, props.className)}
|
|
{...props}
|
|
>
|
|
<path
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
strokeWidth={1.5}
|
|
d="M20 12H10m10-7H4m16 14H4"
|
|
color="currentColor"
|
|
/>
|
|
</svg>
|
|
);
|
|
const ForwardRef = forwardRef(SvgComponent);
|
|
const Memo = memo(ForwardRef);
|
|
export { Memo as Menu };
|