iconoir/packages/iconoir-react/src/CardReader.tsx
2023-03-26 12:41:44 +00:00

43 lines
1 KiB
TypeScript

import * as React from "react";
import { IconoirContext } from "./IconoirContext";
function SvgCardReader(
passedProps: React.SVGProps<SVGSVGElement>,
svgRef?: React.Ref<SVGSVGElement>
) {
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"
xmlns="http://www.w3.org/2000/svg"
color="currentColor"
ref={svgRef}
{...props}
>
<path
d="M5 19V3h14v16a2 2 0 01-2 2H7a2 2 0 01-2-2z"
stroke="currentColor"
/>
<path
d="M5 6H3.5A1.5 1.5 0 012 4.5v0A1.5 1.5 0 013.5 3h17A1.5 1.5 0 0122 4.5v0A1.5 1.5 0 0120.5 6H19"
stroke="currentColor"
/>
<path
d="M15 3v18"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
}
const ForwardRef = React.forwardRef(SvgCardReader);
export default ForwardRef;