UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.45 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "bluetooth"; const BluetoothIcon = ({ color, size = 24, contained = false, className })=>{ const computedClassName = classnames(className, `cobalt-Icon cobalt-Icon--${iconSource}`, { [`c-fill-${camelize(color || "")}`]: color, "cobalt-Icon--size16": 16 === size, "cobalt-Icon--size20": 20 === size, "cobalt-Icon--size32": 32 === size, "cobalt-Icon--contained": contained }); return /*#__PURE__*/ jsx("span", { className: computedClassName, children: /*#__PURE__*/ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [ /*#__PURE__*/ jsx("title", { children: iconSource }), /*#__PURE__*/ jsx("path", { d: "M11.25 2.703C11.25 1.867 12.26 1.449 12.85 2.04L17.936 7.125 13.06 12 17.937 16.875 12.85 21.96C12.26 22.55 11.25 22.132 11.25 21.297V13.81L6.53 18.53 5.47 17.47 10.94 12 5.47 6.53 6.53 5.47 11.25 10.19zM12.75 19.939 15.815 16.875 12.75 13.81zM12.75 10.19 15.815 7.125 12.75 4.061z" }) ] }) }); }; const _generated_BluetoothIcon = BluetoothIcon; export default _generated_BluetoothIcon; //# sourceMappingURL=BluetoothIcon.js.map