onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 916 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Headphones = ({ 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: "M12.000 2.000C6.478 2.000 2.000 6.478 2.000 12.000V19.778C2.000 21.000 3.000 22.000 4.222 22.000H8.667V13.111H4.222V12.000C4.222 7.700 7.700 4.222 12.000 4.222C16.300 4.222 19.778 7.700 19.778 12.000V13.111H15.333V22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V12.000C22.000 6.478 17.522 2.000 12.000 2.000ZM6.444 15.333V19.778H4.222V15.333H6.444ZM19.778 19.778H17.556V15.333H19.778V19.778Z", fill: color })));
};
Headphones.displayName = 'Headphones';