import React from 'react';

import Svg, { Path } from 'react-native-svg';

import { IconProps } from './utils/base';

export const SpreadSheet = ({ height, width, ...rest }: IconProps) => (
  <Svg width={width} height={height} viewBox='0 0 40 48' fill='none' {...rest}>
    <Path
      d='M0 4C0 1.79086 1.79086 0 4 0H28L40 12V44C40 46.2091 38.2091 48 36 48H4C1.79086 48 0 46.2091 0 44V4Z'
      fill='#0C864B'
    />
    <Path
      d='M12.5 20.125H27.5M12.5 23.875H27.5M16.875 20.125V27.625M12.5 16.375H27.5V27C27.5 27.1658 27.4342 27.3247 27.3169 27.4419C27.1997 27.5592 27.0408 27.625 26.875 27.625H13.125C12.9592 27.625 12.8003 27.5592 12.6831 27.4419C12.5658 27.3247 12.5 27.1658 12.5 27V16.375Z'
      stroke='white'
      strokeWidth='1.5'
      strokeLinecap='round'
      strokeLinejoin='round'
    />
    <Path opacity='0.5' d='M40 12L31 12C29.3431 12 28 10.6569 28 9V0L40 12Z' fill='white' />
    <Path
      d='M14.4883 40L15.8359 37.8711L14.4766 35.6992H15.7852L16.5469 37.125H16.6172L17.3789 35.6992H18.6211L17.2656 37.8242L18.6289 40H17.3672L16.5625 38.5781H16.4922L15.6914 40H14.4883ZM19.4883 40V34.0547H20.6289V40H19.4883ZM23.5195 40.0898C23.1289 40.0898 22.7956 40.0365 22.5195 39.9297C22.2461 39.8203 22.0312 39.6706 21.875 39.4805C21.7214 39.2904 21.6315 39.0729 21.6055 38.8281L21.6016 38.8125H22.7227L22.7305 38.8281C22.7773 38.9609 22.8659 39.0703 22.9961 39.1562C23.1289 39.2422 23.3073 39.2852 23.5312 39.2852C23.6771 39.2852 23.8047 39.2656 23.9141 39.2266C24.0234 39.1849 24.1094 39.1289 24.1719 39.0586C24.2344 38.9883 24.2656 38.9062 24.2656 38.8125V38.8047C24.2656 38.6901 24.2188 38.5951 24.125 38.5195C24.0312 38.444 23.875 38.3815 23.6562 38.332L22.9375 38.1797C22.6641 38.1224 22.4362 38.0391 22.2539 37.9297C22.0716 37.8177 21.9349 37.681 21.8438 37.5195C21.7552 37.3581 21.7109 37.1706 21.7109 36.957V36.9531C21.7109 36.6823 21.7852 36.4466 21.9336 36.2461C22.0846 36.043 22.2943 35.8854 22.5625 35.7734C22.8333 35.6615 23.1471 35.6055 23.5039 35.6055C23.8789 35.6055 24.1979 35.6628 24.4609 35.7773C24.724 35.8893 24.9258 36.0404 25.0664 36.2305C25.2096 36.418 25.2891 36.6276 25.3047 36.8594V36.875H24.2461L24.2422 36.8555C24.2109 36.7383 24.1328 36.6354 24.0078 36.5469C23.8828 36.4557 23.7135 36.4102 23.5 36.4102C23.3698 36.4102 23.2539 36.4297 23.1523 36.4688C23.0508 36.5078 22.9701 36.5625 22.9102 36.6328C22.8529 36.7031 22.8242 36.7865 22.8242 36.8828V36.8867C22.8242 36.9622 22.8438 37.0286 22.8828 37.0859C22.9219 37.1432 22.9857 37.1927 23.0742 37.2344C23.1628 37.276 23.2812 37.3138 23.4297 37.3477L24.1445 37.5C24.5742 37.5938 24.8919 37.7344 25.0977 37.9219C25.3034 38.1094 25.4062 38.362 25.4062 38.6797V38.6836C25.4062 38.9674 25.3255 39.2148 25.1641 39.4258C25.0026 39.6367 24.7799 39.8008 24.4961 39.918C24.2122 40.0326 23.8867 40.0898 23.5195 40.0898Z'
      fill='white'
    />
  </Svg>
);
