import React from 'react';
import { Defs, LinearGradient, Stop } from 'react-native-svg';

import { IconProps, RootPath, RootSvg } from './utils/base';

export const PPT: React.FC<IconProps> = (props) => (
  <RootSvg
    height={props.height || 40}
    viewBox={props.viewBox || '0 0 34 40'}
    width={props.width || 34}
    {...props}
  >
    <RootPath
      d='M0 3a3 3 0 013-3h20.333l10 10v27a3 3 0 01-3 3H3a3 3 0 01-3-3V3z'
      pathFill='url(#gradient)'
    />
    <RootPath
      d='M25.864 9.99a2.48 2.48 0 01-2.48-2.48V.058L33.33 9.99h-7.466z'
      pathFill='#AB381D'
    />
    <RootPath
      d='M14.112 35.841a.631.631 0 01-.541-.279 1.005 1.005 0 01-.117-.295 1.725 1.725 0 010-.687.905.905 0 01.111-.295.61.61 0 01.541-.29.624.624 0 01.536.296.836.836 0 01.118.295c.026.111.039.225.039.34 0 .116-.011.229-.034.34a.838.838 0 01-.117.296.61.61 0 01-.536.28zm-1.456-2.366v3.895h.792v-1.367h.011c.097.142.22.25.369.324.152.07.318.106.496.106a1.141 1.141 0 00.949-.452c.108-.138.188-.296.24-.474a2.162 2.162 0 000-1.144 1.435 1.435 0 00-.24-.497 1.208 1.208 0 00-.407-.34 1.25 1.25 0 00-.586-.129 1.13 1.13 0 00-.491.106.872.872 0 00-.369.34h-.01v-.368h-.754zm4.867 2.366a.631.631 0 01-.54-.279 1.005 1.005 0 01-.118-.295 1.725 1.725 0 010-.687.905.905 0 01.112-.295.61.61 0 01.541-.29.624.624 0 01.536.296.836.836 0 01.117.295c.026.111.039.225.039.34 0 .116-.011.229-.034.34a.838.838 0 01-.117.296.61.61 0 01-.536.28zm-1.456-2.366v3.895h.793v-1.367h.01c.097.142.22.25.369.324.152.07.318.106.496.106a1.141 1.141 0 00.949-.452c.108-.138.188-.296.24-.474a2.162 2.162 0 000-1.144 1.435 1.435 0 00-.24-.497 1.208 1.208 0 00-.407-.34 1.25 1.25 0 00-.586-.129 1.13 1.13 0 00-.491.106.872.872 0 00-.368.34h-.012v-.368h-.753zm4.416 0v-.864h-.793v.864h-.48v.53h.48v1.702c0 .145.025.263.073.352.048.09.113.158.195.206.086.049.183.08.29.095.112.019.23.028.352.028.078 0 .158-.002.24-.005.082-.004.156-.012.223-.023v-.614a1.117 1.117 0 01-.245.023c-.134 0-.224-.023-.268-.067-.045-.045-.067-.134-.067-.268v-1.428h.58v-.53h-.58z'
      pathFill='#FFFFFF'
    />
    <RootPath
      d='M9.667 10.667h10c.916 0 1.666.75 1.666 1.666V19c0 .917-.75 1.667-1.666 1.667h-10C8.75 20.667 8 19.917 8 19v-6.667c0-.916.75-1.666 1.667-1.666zM23 14h1.667v8.333c0 .917-.75 1.667-1.667 1.667H11.333v-1.667H23V14zm-3.333 5h-10v-6.667h10V19z'
      pathFill='#FFFFFF'
      pathOpacity={0.4}
    />
    <Defs>
      <LinearGradient
        gradientUnits='userSpaceOnUse'
        id='gradient'
        x1={0}
        x2={0}
        y1={0}
        y2={props.height || 40}
      >
        <Stop stopColor='#DC7259' />
        <Stop offset={1} stopColor='#D14423' />
      </LinearGradient>
    </Defs>
  </RootSvg>
);
