import React from 'react';

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

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

export const DOC = ({ 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='#3375E2'
    />
    <Path opacity='0.5' d='M40 12L31 12C29.3431 12 28 10.6569 28 9V0L40 12Z' fill='white' />
    <Rect x='11' y='15.6001' width='16.2' height='1.8' rx='0.9' fill='white' />
    <Rect x='11' y='24.6001' width='16.2' height='1.8' rx='0.9' fill='white' />
    <Rect x='11' y='20.1001' width='10.8' height='1.8' rx='0.9' fill='white' />
    <Path
      d='M14.668 40.0664C14.3112 40.0664 14.0013 39.9779 13.7383 39.8008C13.4779 39.6211 13.276 39.3659 13.1328 39.0352C12.9922 38.7044 12.9219 38.3099 12.9219 37.8516V37.8438C12.9219 37.3828 12.9909 36.987 13.1289 36.6562C13.2695 36.3255 13.4701 36.0716 13.7305 35.8945C13.9909 35.7174 14.3034 35.6289 14.668 35.6289C14.8633 35.6289 15.0443 35.6602 15.2109 35.7227C15.3802 35.7826 15.5286 35.8685 15.6562 35.9805C15.7839 36.0924 15.8828 36.2279 15.9531 36.3867H16.0234V34.0547H17.1641V40H16.0234V39.332H15.9531C15.8802 39.4857 15.7812 39.6172 15.6562 39.7266C15.5339 39.8359 15.3893 39.9206 15.2227 39.9805C15.056 40.0378 14.8711 40.0664 14.668 40.0664ZM15.0547 39.1211C15.2578 39.1211 15.4323 39.0703 15.5781 38.9688C15.724 38.8672 15.8359 38.7214 15.9141 38.5312C15.9948 38.3411 16.0352 38.1159 16.0352 37.8555V37.8477C16.0352 37.582 15.9948 37.3555 15.9141 37.168C15.8359 36.9779 15.7227 36.832 15.5742 36.7305C15.4284 36.6263 15.2552 36.5742 15.0547 36.5742C14.8568 36.5742 14.6836 36.6263 14.5352 36.7305C14.3893 36.832 14.2773 36.9779 14.1992 37.168C14.1211 37.3555 14.082 37.5807 14.082 37.8438V37.8516C14.082 38.1146 14.1211 38.3411 14.1992 38.5312C14.2773 38.7214 14.3893 38.8672 14.5352 38.9688C14.681 39.0703 14.8542 39.1211 15.0547 39.1211ZM20.2539 40.0898C19.8138 40.0898 19.4349 40.0013 19.1172 39.8242C18.7995 39.6445 18.556 39.388 18.3867 39.0547C18.2174 38.7188 18.1328 38.3177 18.1328 37.8516V37.8438C18.1328 37.3802 18.2188 36.9818 18.3906 36.6484C18.5625 36.3151 18.806 36.0586 19.1211 35.8789C19.4388 35.6966 19.8164 35.6055 20.2539 35.6055C20.6914 35.6055 21.0677 35.6953 21.3828 35.875C21.7005 36.0547 21.9453 36.3125 22.1172 36.6484C22.2891 36.9818 22.375 37.3802 22.375 37.8438V37.8516C22.375 38.3177 22.2904 38.7188 22.1211 39.0547C21.9518 39.388 21.7083 39.6445 21.3906 39.8242C21.0755 40.0013 20.6966 40.0898 20.2539 40.0898ZM20.2539 39.1953C20.457 39.1953 20.6289 39.1419 20.7695 39.0352C20.9102 38.9284 21.0182 38.7747 21.0938 38.5742C21.1693 38.3737 21.207 38.1328 21.207 37.8516V37.8438C21.207 37.5625 21.1693 37.3229 21.0938 37.125C21.0182 36.9245 20.9089 36.7708 20.7656 36.6641C20.625 36.5547 20.4544 36.5 20.2539 36.5C20.0534 36.5 19.8815 36.5547 19.7383 36.6641C19.5977 36.7708 19.4896 36.9245 19.4141 37.125C19.3385 37.3229 19.3008 37.5625 19.3008 37.8438V37.8516C19.3008 38.1354 19.3372 38.3776 19.4102 38.5781C19.4857 38.7786 19.5938 38.9323 19.7344 39.0391C19.8776 39.1432 20.0508 39.1953 20.2539 39.1953ZM25.1992 40.0898C24.7513 40.0898 24.3698 40.0026 24.0547 39.8281C23.7422 39.651 23.5039 39.3958 23.3398 39.0625C23.1758 38.7266 23.0938 38.3203 23.0938 37.8438V37.8359C23.0938 37.362 23.1758 36.9596 23.3398 36.6289C23.5039 36.2982 23.7422 36.0456 24.0547 35.8711C24.3698 35.694 24.7513 35.6055 25.1992 35.6055C25.5794 35.6055 25.9062 35.6706 26.1797 35.8008C26.4531 35.931 26.6693 36.1146 26.8281 36.3516C26.987 36.5885 27.0833 36.8672 27.1172 37.1875V37.1992H26.0586L26.0547 37.1914C26.0156 36.9831 25.9245 36.8164 25.7812 36.6914C25.6406 36.5638 25.4479 36.5 25.2031 36.5C25 36.5 24.8268 36.5521 24.6836 36.6562C24.543 36.7578 24.4362 36.9076 24.3633 37.1055C24.2904 37.3034 24.2539 37.5469 24.2539 37.8359V37.8438C24.2539 38.1328 24.2904 38.3789 24.3633 38.582C24.4388 38.7826 24.5469 38.9349 24.6875 39.0391C24.8281 39.1432 25 39.1953 25.2031 39.1953C25.4375 39.1953 25.625 39.1406 25.7656 39.0312C25.9062 38.9219 26.0013 38.7578 26.0508 38.5391L26.0586 38.5273L27.1133 38.5234V38.5508C27.0716 38.8607 26.9714 39.1315 26.8125 39.3633C26.6536 39.5951 26.4388 39.7747 26.168 39.9023C25.8971 40.0273 25.5742 40.0898 25.1992 40.0898Z'
      fill='white'
    />
  </Svg>
);
