import { useIcon } from 'hooks';
import React, { useMemo } from 'react';
import Svg, { Path } from 'react-native-svg';
import { IconProps } from '../types';

export const Food: React.FC<IconProps> = ({ colorVariant = 'body', ...props }) => {
  const { getIconColor } = useIcon();
  const color = useMemo(() => getIconColor(colorVariant), [getIconColor, colorVariant]);

  return (
    <Svg width="20" height="20" viewBox="0 0 20 20" fill="none" {...props}>
      <Path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M13.9679 4.15734C12.4809 4.15734 11.6411 4.47773 10.9906 4.913C11.4056 3.96478 12.421 2.53922 14.777 2.53922C15.2238 2.53922 15.586 2.17699 15.586 1.73015C15.586 1.28332 15.2238 0.921093 14.777 0.921093C12.4137 0.921093 11.0318 2.02546 10.2891 2.95346C10.2559 2.99392 10.2257 3.03639 10.1953 3.07914C10.1783 3.10306 10.1612 3.12707 10.1435 3.15087C9.70416 1.61689 8.95011 0.14844 7.6629 0.14844C7.15481 0.147631 6.565 0.377404 5.8773 0.921093C4.28102 2.18485 4.52536 3.28679 5.46629 4.17433C3.13377 4.35475 0.213867 6.07805 0.213867 10.6226C0.213867 14.3297 4.22762 19.5295 7.49542 19.5295C8.95799 19.5295 9.35027 19.2001 9.79647 18.8254C9.83776 18.7907 9.87951 18.7557 9.92261 18.7204C9.96571 18.7557 10.0075 18.7907 10.0487 18.8254C10.4949 19.2001 10.8872 19.5295 12.3498 19.5295C15.6176 19.5295 19.6313 14.337 19.6313 10.6298C19.6313 5.81349 16.3506 4.15734 13.9679 4.15734ZM6.88246 2.18876C7.40107 1.77776 7.64541 1.76562 7.6632 1.76562C8.00786 1.90236 8.45204 2.90236 8.7611 4.23731C7.52566 3.72841 6.54346 3.14346 6.3501 2.74378C6.39783 2.65317 6.54508 2.45575 6.88246 2.18876ZM11.0885 17.5861C11.3709 17.8231 11.476 17.9113 12.3498 17.9113C14.6257 17.9113 18.0133 13.5561 18.0133 10.6298C18.0133 5.91131 14.3822 5.77539 13.968 5.77539C12.3984 5.77539 11.9574 6.15646 11.2277 6.78753L10.9663 7.01083C10.3642 7.52127 9.48113 7.52127 8.87896 7.01083L8.61763 6.78753L8.61732 6.78726C7.88692 6.15635 7.44589 5.77539 5.87734 5.77539C5.4631 5.77539 1.83203 5.91131 1.83203 10.6225C1.83203 13.5513 5.21957 17.9113 7.49546 17.9113C8.36867 17.9113 8.47429 17.8224 8.75461 17.5865L8.75517 17.5861L8.89756 17.4679C9.1953 17.2236 9.55776 17.1023 9.92184 17.1023C10.2859 17.1023 10.6492 17.2236 10.9461 17.4679L11.0885 17.5861Z"
        fill={color}
      />
    </Svg>
  );
};
