lucid-ui
Version:
A UI component library from AppNexus.
25 lines • 1.1 kB
JavaScript
import _ from 'lodash';
import React from 'react';
import Icon, { propTypes as iconPropTypes } from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { omitProps } from '../../../util/component-types';
const cx = lucidClassNames.bind('&-ImageIcon');
export const ImageIcon = ({ className, ...passThroughs }) => {
return (React.createElement(Icon, Object.assign({}, omitProps(passThroughs, undefined, _.keys(ImageIcon.propTypes), false), _.pick(passThroughs, _.keys(iconPropTypes)), { className: cx('&', className) }),
React.createElement("path", { d: 'M.5.5h15v15H.5z' }),
React.createElement("circle", { cx: '10', cy: '5', r: '2' }),
React.createElement("path", { d: 'M.5 11.5l4.5-4 4.5 4 3-2 3 2' })));
};
ImageIcon.displayName = 'ImageIcon';
ImageIcon.peek = {
description: `
An icon for a file.
`,
categories: ['visual design', 'icons'],
extend: 'Icon',
madeFrom: ['Icon'],
};
ImageIcon.propTypes = iconPropTypes;
ImageIcon.defaultProps = Icon.defaultProps;
export default ImageIcon;
//# sourceMappingURL=ImageIcon.js.map