import * as React from 'react';
import cx from 'classnames';
import { createSvgIcon } from '../utils/createSvgIcon';
import { iconClassNames } from '../utils/iconClassNames';

export const QnaIcon = createSvgIcon({
  svg: ({ classes }) => (
    <svg role="presentation" focusable="false" viewBox="8 8 16 16" className={classes.svg}>
      <g className={cx(iconClassNames.outline, classes.outlinePart)}>
        <path d="M22.5 11H20V9.5c0-.827-.673-1.5-1.5-1.5h-9C8.673 8 8 8.673 8 9.5v10.274c0 .48.291.895.741 1.058a1.114 1.114 0 0 0 1.247-.337l1.783-2.139c.077.008.152.009.229.016v1.302c0 .735.518 1.357 1.23 1.478 2.19.37 4.561.456 7 .204l1.782 2.139a1.114 1.114 0 0 0 1.247.337c.45-.163.741-.578.741-1.058V12.5c0-.827-.673-1.5-1.5-1.5zm-10.885 6.333l-.267-.03-2.127 2.551c-.038.045-.086.055-.139.038A.114.114 0 0 1 9 19.774V9.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v7.174c0 .242-.17.453-.398.492-2.18.37-4.553.445-6.987.167zM23 22.774a.114.114 0 0 1-.082.118.12.12 0 0 1-.139-.038l-2.127-2.552-.267.031a25.02 25.02 0 0 1-6.987-.167.495.495 0 0 1-.398-.492v-1.232c2.003.116 3.95.018 5.77-.29A1.487 1.487 0 0 0 20 16.674V12h2.5a.5.5 0 0 1 .5.5v10.274z" />
        <path d="M16.05 11.844c0-1.097-.862-1.894-2.05-1.894-1.266 0-2.05.902-2.05 1.738h.9c0-.292.338-.838 1.15-.838.698 0 1.15.39 1.15.994 0 .48-.295.715-.778 1.046-.386.263-.822.561-.822 1.11h.9c0-.074.28-.265.43-.367.466-.319 1.17-.8 1.17-1.79z" />
        <circle cx="14" cy="15.5" r=".625" />
      </g>
      <path
        className={cx(iconClassNames.filled, classes.filledPart)}
        d="M22.5 11H20V9.5c0-.827-.673-1.5-1.5-1.5h-9C8.673 8 8 8.673 8 9.5v10.274c0 .48.291.895.741 1.058a1.114 1.114 0 0 0 1.247-.337l1.783-2.139c.077.008.152.009.229.016v1.302c0 .735.518 1.357 1.23 1.478 2.19.37 4.561.456 7 .204l1.782 2.139a1.114 1.114 0 0 0 1.247.337c.45-.163.741-.578.741-1.058V12.5c0-.827-.673-1.5-1.5-1.5zm-10.6.688c0-.86.803-1.788 2.1-1.788 1.217 0 2.1.817 2.1 1.944 0 1.016-.717 1.506-1.192 1.83-.142.097-.38.26-.41.334L13.5 14c0-.575.468-.895.844-1.152.469-.32.756-.54.756-1.004 0-.697-.593-.944-1.1-.944-.777 0-1.1.513-1.1.788h-1zm2.85 4.062a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zM23 22.774a.114.114 0 0 1-.082.118.12.12 0 0 1-.139-.038l-2.127-2.552-.267.031a25.02 25.02 0 0 1-6.987-.167.495.495 0 0 1-.398-.492v-1.232c2.003.116 3.95.018 5.77-.29A1.487 1.487 0 0 0 20 16.674V12h2.5a.5.5 0 0 1 .5.5v10.274z"
      />
    </svg>
  ),
  displayName: 'QnaIcon',
});
