UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

9 lines (8 loc) 1.06 kB
import React from 'react'; export const Timer = ({ size = 'md', color = 'currentColor', className, 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", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M13.429 2.000H7.714V3.905H13.429V2.000ZM9.619 14.381H11.524V8.667H9.619V14.381ZM17.267 8.086L18.619 6.733C18.210 6.248 17.762 5.790 17.276 5.390L15.924 6.743C14.448 5.562 12.590 4.857 10.571 4.857C5.838 4.857 2.000 8.695 2.000 13.429C2.000 18.162 5.829 22.000 10.571 22.000C15.314 22.000 19.143 18.162 19.143 13.429C19.143 11.410 18.438 9.552 17.267 8.086ZM10.571 20.095C6.886 20.095 3.905 17.114 3.905 13.429C3.905 9.743 6.886 6.762 10.571 6.762C14.257 6.762 17.238 9.743 17.238 13.429C17.238 17.114 14.257 20.095 10.571 20.095Z", fill: color }))); }; Timer.displayName = 'Timer';