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

44 lines
1.1 KiB
TypeScript

import * as React from "react";
import Svg, { SvgProps, Path } from "react-native-svg";
import { IconoirContext } from "./IconoirContext";
function SvgNintendoSwitch(
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="M2 17V7a4 4 0 014-4h3.9a.6.6 0 01.6.6v16.8a.6.6 0 01-.6.6H6a4 4 0 01-4-4z"
stroke="currentColor"
/>
<Path
d="M6.5 8a1 1 0 100-2 1 1 0 000 2zM17.5 14a1 1 0 100-2 1 1 0 000 2z"
fill="currentColor"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
/>
<Path
d="M22 17V7a4 4 0 00-4-4h-3.9a.6.6 0 00-.6.6v16.8a.6.6 0 00.6.6H18a4 4 0 004-4z"
stroke="currentColor"
/>
</Svg>
);
}
const ForwardRef = React.forwardRef(SvgNintendoSwitch);
export default ForwardRef;