/**
* This is a generated file. Do not modify it manually.
*
* @script packages/icon/scripts/prebuild/index.ts
* @checksum 8ad02ffaf712d2a311ba6b6b06e18a43
*/
import * as React from "react";
import { css, cx } from '@leafygreen-ui/emotion';
import { useIdAllocator } from '@leafygreen-ui/hooks';
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
import { LGGlyph } from '../types';
export interface FunctionProps extends LGGlyph.ComponentProps {}
const Function = ({
  className,
  size = 16,
  title,
  ['aria-label']: ariaLabel,
  ['aria-labelledby']: ariaLabelledby,
  fill,
  role = 'img',
  ...props
}: FunctionProps) => {
  const titleId = useIdAllocator({
    prefix: 'icon-title'
  });
  const fillStyle = css`
        color: ${fill};
      `;
  const noFlexShrink = css`
        flex-shrink: 0;
      `;
  const accessibleProps = generateAccessibleProps(role, 'Function', {
    title,
    titleId,
    ['aria-label']: ariaLabel,
    ['aria-labelledby']: ariaLabelledby
  });
  return <svg className={cx({
    [fillStyle]: fill != null
  }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && <title id={titleId}>{title}</title>}<path fillRule="evenodd" clipRule="evenodd" d="M8.97109 5.02989C9.32595 5.15463 9.77919 5.42309 10.0605 5.97407C10.1155 6.08185 10.368 6.46167 10.7732 7.03828C11.1598 7.58843 11.6451 8.26217 12.1217 8.91773C12.5979 9.57275 13.0637 10.2073 13.4106 10.6782C13.584 10.9136 13.7276 11.108 13.8278 11.2435L13.984 11.4545L13.9846 11.4553L12.7798 12.3489L12.6218 12.1354C12.5211 11.9992 12.3769 11.8041 12.2029 11.5678C11.8549 11.0954 11.3871 10.4582 10.9085 9.7998C10.4302 9.14196 9.93934 8.46062 9.54588 7.90065C9.17103 7.36716 8.83973 6.88184 8.72449 6.6561C8.66525 6.54006 8.57608 6.48101 8.47365 6.44501C8.42075 6.42641 8.37145 6.41719 8.33713 6.41294C8.32305 6.4112 8.31288 6.41047 8.30776 6.41018L8.30594 6.41008H3.67899V4.91008H8.30604L8.30853 4.91007L8.32622 4.91018C8.33953 4.91036 8.3559 4.91079 8.37501 4.91167C8.41313 4.91344 8.4628 4.91705 8.52139 4.9243C8.63728 4.93865 8.79534 4.96811 8.97109 5.02989Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M14.4976 5.97967L8.13926 12.348L7.07778 11.2881L13.4361 4.91984L14.4976 5.97967Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M10.0554 1.23222C10.0554 1.23222 10.0557 1.23235 9.80834 1.94037C9.56094 2.64839 9.56127 2.64851 9.56127 2.64851L9.56306 2.64913L9.54599 2.64365C9.52931 2.63843 9.50162 2.63009 9.46441 2.61998C9.38967 2.59968 9.27845 2.57277 9.14232 2.54956C8.86448 2.5022 8.51151 2.47522 8.16284 2.53192C7.8992 2.57479 7.67508 2.71385 7.5022 2.89831C7.31854 3.09427 7.24074 3.28955 7.22769 3.36378C7.18558 3.60314 6.80654 5.88451 6.43657 8.11495C6.25191 9.2282 6.06994 10.3262 5.93412 11.1459L5.70857 12.5076L5.70821 12.5097L5.70728 12.5152L5.70444 12.5312C5.70211 12.5441 5.69888 12.5612 5.69468 12.5823C5.6863 12.6242 5.67395 12.6818 5.65698 12.7511C5.62334 12.8883 5.57002 13.0776 5.49071 13.2841C5.34699 13.6583 5.05661 14.2553 4.49397 14.5819C4.02314 14.8552 3.46753 14.9621 2.96614 14.9903C2.45559 15.0189 1.93887 14.9693 1.5 14.8801L1.79887 13.4101C2.12843 13.4772 2.51574 13.5132 2.88211 13.4926C3.25763 13.4716 3.55181 13.3944 3.74092 13.2846C3.83822 13.2282 3.97349 13.0508 4.09044 12.7463C4.14146 12.6135 4.17723 12.4873 4.20009 12.394C4.21137 12.348 4.21912 12.3116 4.22378 12.2882L4.22843 12.264L4.22871 12.2626L4.96874 12.3844C4.22882 12.2619 4.22871 12.2626 4.22871 12.2626L4.22889 12.2615L4.22907 12.2604L4.4543 10.9007C4.59012 10.081 4.77211 8.98286 4.95679 7.8695C5.32549 5.64672 5.70659 3.35282 5.75037 3.10392C5.82319 2.68991 6.06482 2.23845 6.40776 1.87255C6.76148 1.49514 7.27113 1.15722 7.92207 1.05136C8.48799 0.959336 9.01795 1.00672 9.39441 1.0709C9.58542 1.10346 9.74419 1.14162 9.85765 1.17245C9.91454 1.1879 9.96051 1.20164 9.99395 1.2121C10.0107 1.21734 10.0243 1.22177 10.0347 1.22521L10.0477 1.22959L10.0524 1.23118L10.0542 1.23182L10.0554 1.23222Z" fill={'currentColor'} /></svg>;
};
Function.displayName = 'Function';
Function.isGlyph = true;
export default Function;