mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-28 02:10:13 +02:00
34 lines
874 B
TypeScript
34 lines
874 B
TypeScript
|
import * as React from "react";
|
||
|
import Svg, { SvgProps, Path } from "react-native-svg";
|
||
|
import { IconoirContext } from "./IconoirContext";
|
||
|
|
||
|
function SvgDiameter(
|
||
|
passedProps: SvgProps,
|
||
|
svgRef?: React.Ref<React.Component<SvgProps>>
|
||
|
) {
|
||
|
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"
|
||
|
color="currentColor"
|
||
|
ref={svgRef}
|
||
|
{...props}
|
||
|
>
|
||
|
<Path
|
||
|
d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM19 12l-3-3m3 3l-3 3m3-3H5m0 0l3-3m-3 3l3 3"
|
||
|
stroke="currentColor"
|
||
|
strokeLinecap="round"
|
||
|
strokeLinejoin="round"
|
||
|
/>
|
||
|
</Svg>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
const ForwardRef = React.forwardRef(SvgDiameter);
|
||
|
export default ForwardRef;
|