import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconAddGroupComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-add_group${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 15 14" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M12.0092 9.72C12.2979 9.36265 12.4563 8.91763 12.4584 8.45825C12.4584 7.91674 12.2433 7.39746 11.8604 7.01456C11.4775 6.63166 10.9582 6.41659 10.4167 6.41659C9.8752 6.41659 9.35592 6.63166 8.97302 7.01456C8.59012 7.39746 8.37504 7.91674 8.37504 8.45825C8.37714 8.91763 8.53552 9.36265 8.82421 9.72C8.28912 9.99464 7.8333 10.4017 7.50004 10.9024C7.16678 10.4017 6.71097 9.99464 6.17587 9.72C6.46457 9.36265 6.62294 8.91763 6.62504 8.45825C6.62504 7.91674 6.40997 7.39746 6.02705 7.01456C5.64417 6.63166 5.12486 6.41659 4.58337 6.41659C4.04189 6.41659 3.52258 6.63166 3.1397 7.01456C2.75681 7.39746 2.54171 7.91674 2.54171 8.45825C2.54378 8.91763 2.70219 9.36265 2.99087 9.72C2.41721 10.0131 1.93557 10.4589 1.599 11.0082C1.26244 11.5575 1.08402 12.189 1.08337 12.8333C1.08337 12.988 1.14483 13.1364 1.25423 13.2457C1.36362 13.3551 1.512 13.4166 1.66671 13.4166H13.3334C13.4881 13.4166 13.6365 13.3551 13.7458 13.2457C13.8552 13.1364 13.9167 12.988 13.9167 12.8333C13.9161 12.189 13.7376 11.5575 13.4011 11.0082C13.0645 10.4589 12.5829 10.0131 12.0092 9.72ZM4.58337 7.58325C4.75643 7.58325 4.9256 7.63459 5.0695 7.73072C5.21339 7.82685 5.32554 7.96353 5.39177 8.12342C5.458 8.28331 5.47533 8.45924 5.44156 8.62894C5.4078 8.79869 5.32446 8.95461 5.20209 9.07699C5.07972 9.19932 4.92381 9.28268 4.75408 9.31645C4.58434 9.35023 4.40841 9.3329 4.24852 9.26664C4.08864 9.20043 3.95199 9.08825 3.85584 8.9444C3.75969 8.80049 3.70837 8.63133 3.70837 8.45825C3.70837 8.2262 3.80056 8.0036 3.96466 7.83951C4.12875 7.67542 4.35131 7.58325 4.58337 7.58325ZM2.32412 12.2499C2.45344 11.7491 2.74554 11.3053 3.15449 10.9886C3.56344 10.6718 4.06608 10.4999 4.58337 10.4999C5.10067 10.4999 5.6033 10.6718 6.01226 10.9886C6.42122 11.3053 6.7133 11.7491 6.84262 12.2499H2.32412ZM10.4167 7.58325C10.5898 7.58325 10.759 7.63459 10.9029 7.73072C11.0467 7.82685 11.1589 7.96353 11.2251 8.12342C11.2913 8.28331 11.3087 8.45924 11.2749 8.62894C11.2411 8.79869 11.1578 8.95461 11.0354 9.07699C10.9131 9.19932 10.7571 9.28268 10.5874 9.31645C10.4177 9.35023 10.2418 9.3329 10.0819 9.26664C9.92198 9.20043 9.78531 9.08825 9.68917 8.9444C9.59304 8.80049 9.54171 8.63133 9.54171 8.45825C9.54171 8.2262 9.63387 8.0036 9.79797 7.83951C9.96206 7.67542 10.1847 7.58325 10.4167 7.58325ZM8.15746 12.2499C8.28678 11.7491 8.57886 11.3053 8.98783 10.9886C9.39681 10.6718 9.89941 10.4999 10.4167 10.4999C10.934 10.4999 11.4366 10.6718 11.8456 10.9886C12.2546 11.3053 12.5466 11.7491 12.676 12.2499H8.15746ZM6.91671 5.83325V4.08325H5.16671C5.012 4.08325 4.86363 4.02179 4.75423 3.9124C4.64483 3.803 4.58337 3.65463 4.58337 3.49992C4.58337 3.34521 4.64483 3.19684 4.75423 3.08744C4.86363 2.97805 5.012 2.91659 5.16671 2.91659H6.91671V1.16659C6.91671 1.01187 6.97819 0.863503 7.08757 0.754104C7.19694 0.644712 7.34534 0.583252 7.50004 0.583252C7.65474 0.583252 7.80314 0.644712 7.91252 0.754104C8.02189 0.863503 8.08337 1.01187 8.08337 1.16659V2.91659H9.83337C9.98807 2.91659 10.1365 2.97805 10.2458 3.08744C10.3552 3.19684 10.4167 3.34521 10.4167 3.49992C10.4167 3.65463 10.3552 3.803 10.2458 3.9124C10.1365 4.02179 9.98807 4.08325 9.83337 4.08325H8.08337V5.83325C8.08337 5.98795 8.02189 6.13635 7.91252 6.24573C7.80314 6.3551 7.65474 6.41659 7.50004 6.41659C7.34534 6.41659 7.19694 6.3551 7.08757 6.24573C6.97819 6.13635 6.91671 5.98795 6.91671 5.83325Z"/></svg>;
}

const IconAddGroup = React.forwardRef(IconAddGroupComponent);
export default IconAddGroup;
