@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
20 lines (17 loc) • 1.21 kB
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import cx from 'classnames';
import 'lodash.throttle';
import camelize from '../../utils/camelize.js';
const iconSource = "optionCdPlayer";
const OptionCdPlayerIcon = ({ color, size = 24, contained = false, className, }) => {
const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
[`c-fill-${camelize(color || "")}`]: color,
"cobalt-Icon--size16": size === 16,
"cobalt-Icon--size20": size === 20,
"cobalt-Icon--size32": size === 32,
"cobalt-Icon--contained": contained,
});
return (jsx("span", { className: computedClassName, children: jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [jsx("title", { children: iconSource }), jsx("path", { d: "m12 2c2.652 0 5.196 1.054 7.071 2.929s2.929 4.419 2.929 7.071c0 5.523-4.477 10-10 10-2.652 0-5.196-1.054-7.071-2.929s-2.929-4.419-2.929-7.071 1.054-5.196 2.929-7.071 4.419-2.929 7.071-2.929zm4 7v-2h-4v5.5c-.42-.31-.93-.5-1.5-.5-1.381 0-2.5 1.119-2.5 2.5s1.119 2.5 2.5 2.5 2.5-1.119 2.5-2.5v-5.5z" })] }) }));
};
export { OptionCdPlayerIcon as default };
//# sourceMappingURL=OptionCdPlayerIcon.js.map