mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-11 10:22:20 +02:00
34 lines
837 B
TypeScript
34 lines
837 B
TypeScript
import * as React from "react";
|
|
import { IconoirContext } from "./IconoirContext";
|
|
|
|
function SvgDrag(
|
|
passedProps: React.SVGProps<SVGSVGElement>,
|
|
svgRef?: React.Ref<SVGSVGElement>
|
|
) {
|
|
const context = React.useContext(IconoirContext);
|
|
const props = { ...context, ...passedProps };
|
|
return (
|
|
<svg
|
|
width="1.5em"
|
|
height="1.5em"
|
|
viewBox="0 0 24 24"
|
|
strokeWidth={1.5}
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
color="currentColor"
|
|
ref={svgRef}
|
|
{...props}
|
|
>
|
|
<path
|
|
d="M12 12L4 4m0 0v4m0-4h4M12 12l8-8m0 0v4m0-4h-4M12 12l-8 8m0 0v-4m0 4h4M12 12l8 8m0 0v-4m0 4h-4"
|
|
stroke="currentColor"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
/>
|
|
</svg>
|
|
);
|
|
}
|
|
|
|
const ForwardRef = React.forwardRef(SvgDrag);
|
|
export default ForwardRef;
|