All files / Icon/UnlinkedIcon UnlinkedIcon.tsx

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45            176x       176x       6x                                 176x 176x               176x 176x      
import _ from 'lodash';
import React from 'react';
import Icon, { IIconProps, propTypes as iconPropTypes } from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { omitProps } from '../../../util/component-types';
 
const cx = lucidClassNames.bind('&-UnlinkedIcon');
 
interface IUnlinkedIconProps extends IIconProps {}
 
export const UnlinkedIcon = ({
	className,
	...passThroughs
}: IUnlinkedIconProps) => {
	return (
		<Icon
			{...omitProps(
				passThroughs,
				undefined,
				_.keys(UnlinkedIcon.propTypes),
				false
			)}
			{..._.pick(passThroughs, _.keys(iconPropTypes))}
			className={cx('&', className)}
		>
			<path d='M5.5 3.5l-1-2m8 9l2 1m-4 1l1 2m-8-9l-2-1' />
			<path d='M10.232 7.768a2.993 2.993 0 0 0 2.979-.737l1.414-1.414a3.009 3.009 0 0 0 0-4.243 3.009 3.009 0 0 0-4.243 0L8.968 2.789c-.804.804-1.04 1.956-.737 2.979M5.769 8.231c-1.023-.303-2.176-.067-2.98.737l-1.414 1.414a3.009 3.009 0 0 0 0 4.243 3.009 3.009 0 0 0 4.243 0l1.414-1.414c.804-.804 1.04-1.956.737-2.979' />
		</Icon>
	);
};
 
UnlinkedIcon.displayName = 'UnlinkedIcon';
UnlinkedIcon.peek = {
	description: `
		For all those times you just need to break away.
	`,
	categories: ['visual design', 'icons'],
	extend: 'Icon',
	madeFrom: ['Icon'],
};
UnlinkedIcon.propTypes = iconPropTypes;
UnlinkedIcon.defaultProps = Icon.defaultProps;
 
export default UnlinkedIcon;