iconoir/packages/iconoir-react-native/src/3DArc.tsx

41 lines
1 KiB
TypeScript
Raw Normal View History

import * as React from "react";
import Svg, { Path } from "react-native-svg";
import type { SvgProps } from "react-native-svg";
import { Ref, forwardRef } from "react";
import { IconoirContext } from "./IconoirContext";
const Svg3DArc = (passedProps: SvgProps, ref: Ref<Svg>) => {
const context = React.useContext(IconoirContext);
2023-01-11 19:09:27 +01:00
const props = {
...context,
...passedProps,
};
2022-04-23 15:48:44 +02:00
return (
<Svg
width="1.5em"
height="1.5em"
fill="none"
strokeWidth={1.5}
viewBox="0 0 24 24"
2022-04-23 15:48:44 +02:00
color="currentColor"
ref={ref}
2022-04-23 15:48:44 +02:00
{...props}
>
<Path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M22 16c0-5.523-4.477-10-10-10S2 10.477 2 16"
2022-04-23 15:48:44 +02:00
/>
<Path
fill="currentColor"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M2 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM22 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
2022-04-23 15:48:44 +02:00
/>
</Svg>
);
};
const ForwardRef = forwardRef(Svg3DArc);
2022-04-23 15:48:44 +02:00
export default ForwardRef;