import _ from 'lodash';
import React from 'react';
import Icon from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { createClass } from '../../../util/component-types';

const cx = lucidClassNames.bind('&-UnlinkedIcon');

/**
 *
 * {"categories": ["visual design", "icons"], "extend": "Icon", "madeFrom": ["Icon"]}
 *
 * For all those times you just need to break away.
 */
const UnlinkedIcon = createClass({
	displayName: 'UnlinkedIcon',
	propTypes: {
		...Icon.propTypes,
	},

	render() {
		const { className, ...passThroughs } = this.props;

		return (
			<Icon
				{...passThroughs}
				{..._.pick(passThroughs, _.keys(Icon.propTypes))}
				className={cx('&', className)}
			>
				<path d="M11.826 1.79c.564 0 1.383.216 1.78.614.392.39.616 1.003.616 1.68 0 .674-.225 1.287-.615 1.68L10.2 8.974l1.987.003 2.41-2.222c1.473-1.474 1.473-3.87 0-5.345-.71-.712-1.66-1.105-2.672-1.105S9.967.697 9.258 1.41L7.032 3.558l-.01 1.966 3.228-3.158c.36-.36.947-.574 1.576-.574zM5.373 13.598c-.398.396-.924.613-1.48.613-.558 0-1.083-.216-1.48-.61-.814-.816-.815-2.545 0-3.36l3.1-3.233L3.55 7 1.42 9.248c-.714.71-1.106 1.658-1.106 2.67s.393 1.96 1.104 2.672c.71.713 1.66 1.105 2.673 1.105 1.012 0 1.96-.393 2.672-1.105l2.244-2.146-.004-1.954-3.63 3.108zM15.98 10.127c-.047-.055-.117-.086-.188-.082l-3.63.045c-.122.002-.224.092-.237.213-.016.12.057.232.174.266l3.524 1.05c.023.006.045.008.066.008.05 0 .094-.012.135-.04.06-.038.1-.1.107-.17l.074-1.1c.014-.068.02-.138-.026-.19zM10.24 11.58c-.117.016-.21.115-.21.234l-.022 3.63c0 .073.03.142.082.19.045.04.102.06.162.06h.03l1.073-.105c.068-.01.13-.05.17-.11.04-.06.05-.133.03-.2l-1.05-3.524c-.03-.12-.144-.194-.265-.176zM5.384 4.132c.03.105.127.176.232.176.012 0 .023 0 .033-.002.12-.016.208-.117.21-.237L5.907.437c0-.07-.028-.14-.082-.187C5.774.205 5.7.184 5.63.193L4.537.297c-.07.01-.133.05-.172.11-.04.06-.1.36-.08.428l1.1 3.297zM4.092 5.744c.015-.12-.06-.233-.175-.267L.39 4.43c-.066-.022-.14-.01-.2.028-.06.04-.1.1-.108.172L.008 5.725c-.01.07-.02.142.027.195.048.052.114.08.184.08h.003l3.63-.046c.122 0 .222-.09.24-.21z" />
			</Icon>
		);
	},
});

export default UnlinkedIcon;
