import React from 'react';

import Svg, { ClipPath, Defs, G, Path, Rect } from 'react-native-svg';

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

export const Video = ({ 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='#A847B7'
    />
    <G clipPath='url(#clip0_2755_46020)'>
      <Path
        d='M25.625 20.75L29.375 18.25V25.75L25.625 23.25M12.5 17H25C25.3452 17 25.625 17.2798 25.625 17.625V26.375C25.625 26.7202 25.3452 27 25 27H12.5C12.1548 27 11.875 26.7202 11.875 26.375V17.625C11.875 17.2798 12.1548 17 12.5 17Z'
        stroke='white'
        strokeWidth='1.5'
        strokeLinecap='round'
        strokeLinejoin='round'
      />
    </G>
    <Path opacity='0.5' d='M40 12L31 12C29.3431 12 28 10.6569 28 9V0L40 12Z' fill='white' />
    <Path
      d='M11.5 40V35.6992H12.6406V36.3711H12.7109C12.8021 36.1289 12.9531 35.9414 13.1641 35.8086C13.375 35.6732 13.6211 35.6055 13.9023 35.6055C14.0977 35.6055 14.2747 35.638 14.4336 35.7031C14.5924 35.7656 14.7279 35.8555 14.8398 35.9727C14.9518 36.0898 15.0378 36.2318 15.0977 36.3984H15.168C15.2331 36.2396 15.3294 36.1016 15.457 35.9844C15.5846 35.8646 15.7344 35.7721 15.9062 35.707C16.0781 35.6393 16.2643 35.6055 16.4648 35.6055C16.7513 35.6055 16.9974 35.6641 17.2031 35.7812C17.4115 35.8984 17.5716 36.0651 17.6836 36.2812C17.7982 36.4948 17.8555 36.75 17.8555 37.0469V40H16.7148V37.332C16.7148 37.1576 16.6888 37.013 16.6367 36.8984C16.5846 36.7839 16.5052 36.6979 16.3984 36.6406C16.2943 36.5807 16.1628 36.5508 16.0039 36.5508C15.8503 36.5508 15.7161 36.5859 15.6016 36.6562C15.4896 36.7266 15.4023 36.8216 15.3398 36.9414C15.2773 37.0612 15.2461 37.1992 15.2461 37.3555V40H14.1055V37.2812C14.1055 37.1276 14.0768 36.9961 14.0195 36.8867C13.9648 36.7773 13.8841 36.694 13.7773 36.6367C13.6732 36.5794 13.5469 36.5508 13.3984 36.5508C13.25 36.5508 13.1185 36.5885 13.0039 36.6641C12.8919 36.737 12.8034 36.8385 12.7383 36.9688C12.6732 37.0964 12.6406 37.2422 12.6406 37.4062V40H11.5ZM18.9609 41.4258V35.6992H20.1016V36.3633H20.1719C20.2474 36.2096 20.3464 36.0781 20.4688 35.9688C20.5938 35.8594 20.7396 35.776 20.9062 35.7188C21.0729 35.6589 21.2578 35.6289 21.4609 35.6289C21.8203 35.6289 22.1302 35.7188 22.3906 35.8984C22.651 36.0781 22.8516 36.3333 22.9922 36.6641C23.1354 36.9922 23.207 37.3854 23.207 37.8438V37.8516C23.207 38.3125 23.1367 38.7083 22.9961 39.0391C22.8555 39.3698 22.6549 39.6237 22.3945 39.8008C22.1341 39.9779 21.8229 40.0664 21.4609 40.0664C21.263 40.0664 21.0794 40.0365 20.9102 39.9766C20.7435 39.9141 20.5964 39.8268 20.4688 39.7148C20.3438 39.6029 20.2448 39.4688 20.1719 39.3125H20.1016V41.4258H18.9609ZM21.0703 39.1211C21.2734 39.1211 21.4466 39.0703 21.5898 38.9688C21.7357 38.8672 21.8477 38.7214 21.9258 38.5312C22.0065 38.3411 22.0469 38.1146 22.0469 37.8516V37.8438C22.0469 37.5807 22.0065 37.3542 21.9258 37.1641C21.8477 36.974 21.7357 36.8281 21.5898 36.7266C21.4466 36.625 21.2734 36.5742 21.0703 36.5742C20.8698 36.5742 20.6953 36.625 20.5469 36.7266C20.401 36.8281 20.2878 36.974 20.207 37.1641C20.1289 37.3516 20.0898 37.5781 20.0898 37.8438V37.8516C20.0898 38.112 20.1302 38.3385 20.2109 38.5312C20.2917 38.7214 20.4049 38.8672 20.5508 38.9688C20.6992 39.0703 20.8724 39.1211 21.0703 39.1211ZM26.7539 40V38.9648H23.9922V38.0391C24.1354 37.7839 24.2799 37.5312 24.4258 37.2812C24.5716 37.0286 24.7188 36.7786 24.8672 36.5312C25.0182 36.2812 25.168 36.0352 25.3164 35.793C25.4674 35.5482 25.6185 35.3073 25.7695 35.0703C25.9206 34.8307 26.0716 34.5951 26.2227 34.3633H27.8789V38.0195H28.6133V38.9648H27.8789V40H26.7539ZM25.0547 38.0508H26.7773V35.2578H26.7148C26.6055 35.4271 26.4935 35.6003 26.3789 35.7773C26.2669 35.9544 26.1536 36.1354 26.0391 36.3203C25.9271 36.5052 25.8138 36.6914 25.6992 36.8789C25.5872 37.0638 25.4766 37.25 25.3672 37.4375C25.2604 37.6224 25.1562 37.806 25.0547 37.9883V38.0508Z'
      fill='white'
    />
    <Defs>
      <ClipPath id='clip0_2755_46020'>
        <Rect width='20' height='20' fill='white' transform='translate(10 12)' />
      </ClipPath>
    </Defs>
  </Svg>
);
