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

47 lines
1.2 KiB
TypeScript

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 Svg3DBridge = (passedProps: SvgProps, ref: Ref<Svg>) => {
const context = React.useContext(IconoirContext);
const props = {
...context,
...passedProps,
};
return (
<Svg
width="1.5em"
height="1.5em"
fill="none"
strokeWidth={1.5}
viewBox="0 0 24 24"
color="currentColor"
ref={ref}
{...props}
>
<Path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M18 4h3"
/>
<Path
fill="currentColor"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M10 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM14 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
/>
<Path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M10 20s6.5-2.5 2-8 2-8 2-8M3 20h3"
/>
</Svg>
);
};
const ForwardRef = forwardRef(Svg3DBridge);
export default ForwardRef;