iconoir/packages/iconoir-react-native/src/OpenNewWindow.tsx
2023-01-11 18:09:27 +00:00

40 lines
946 B
TypeScript

import * as React from "react";
import Svg, { SvgProps, Path } from "react-native-svg";
import { IconoirContext } from "./IconoirContext";
function SvgOpenNewWindow(
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="M21 3h-6m6 0l-9 9m9-9v6"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
/>
<Path
d="M21 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h6"
stroke="currentColor"
strokeLinecap="round"
/>
</Svg>
);
}
const ForwardRef = React.forwardRef(SvgOpenNewWindow);
export default ForwardRef;