mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-30 17:50:43 +02:00
34 lines
865 B
TypeScript
34 lines
865 B
TypeScript
import * as React from "react";
|
|
import { IconoirContext } from "./IconoirContext";
|
|
|
|
function SvgRuler(
|
|
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"
|
|
strokeWidth={1.5}
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
color="currentColor"
|
|
ref={svgRef}
|
|
{...props}
|
|
>
|
|
<path
|
|
d="M16 7V2.6a.6.6 0 00-.6-.6H8.6a.6.6 0 00-.6.6v18.8a.6.6 0 00.6.6h6.8a.6.6 0 00.6-.6V17m0-10h-3m3 0v5m0 0h-3m3 0v5m0 0h-3"
|
|
stroke="currentColor"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
/>
|
|
</svg>
|
|
);
|
|
}
|
|
|
|
const ForwardRef = React.forwardRef(SvgRuler);
|
|
export default ForwardRef;
|