onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 975 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Cast = ({ size = 'md', color = 'currentColor', style, }) => {
const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 };
const iconSize = typeof size === 'number' ? size : sizeMap[size];
return (React.createElement(Svg, { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", style: style },
React.createElement(Path, { d: "M20.182 3.818H3.818C2.818 3.818 2.000 4.636 2.000 5.636V8.364H3.818V5.636H20.182V18.364H13.818V20.182H20.182C21.182 20.182 22.000 19.364 22.000 18.364V5.636C22.000 4.636 21.182 3.818 20.182 3.818ZM2.000 17.455V20.182H4.727C4.727 18.673 3.509 17.455 2.000 17.455ZM2.000 13.818V15.636C4.509 15.636 6.545 17.673 6.545 20.182H8.364C8.364 16.664 5.518 13.818 2.000 13.818ZM2.000 10.182V12.000C6.518 12.000 10.182 15.664 10.182 20.182H12.000C12.000 14.655 7.518 10.182 2.000 10.182Z", fill: color })));
};
Cast.displayName = 'Cast';