mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-05-20 07:16:42 +02:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 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 SvgAddPage = (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="M9 12h3m3 0h-3m0 0V9m0 3v3M4 21.4V2.6a.6.6 0 0 1 .6-.6h11.652a.6.6 0 0 1 .424.176l3.148 3.148A.6.6 0 0 1 20 5.75V21.4a.6.6 0 0 1-.6.6H4.6a.6.6 0 0 1-.6-.6Z"
|
|
/>
|
|
<Path
|
|
stroke="currentColor"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
d="M16 2v3.4a.6.6 0 0 0 .6.6H20"
|
|
/>
|
|
</Svg>
|
|
);
|
|
};
|
|
const ForwardRef = forwardRef(SvgAddPage);
|
|
export default ForwardRef;
|