import * as React from 'react';
import { useTheme } from '../theme';
import View from '../view';

const Logo = ({ color = 'TEDRed.0', ...props }: { color?: string }) => {
  return (
    <View {...props} style={{ lineHeight: 0 }} sx={{ color }}>
      <svg width="100%" viewBox="0 0 67 24" fill="currentColor">
        <path
          d="M6.72664 6.12613H0V0h20.90323v6.12613h-6.72665V24H6.72664V6.12613zM22.61751 0h20.12903v6.12613H29.99577v2.95495h12.75077v5.76577H29.99577v3.02702h12.75077V24H22.61751V0zm21.67742 0h11.89443c7.81232 0 10.55718 5.90991 10.55718 11.96396C66.74654 19.31532 62.94596 24 54.78174 24h-10.4868V0zm7.03565 17.80645h2.71647c4.34635 0 4.95756-3.7276 4.95756-5.94982 0-1.50538-.47538-5.66308-5.50085-5.66308h-2.24109l.06791 11.6129z"
          fillRule="evenodd"
        ></path>
      </svg>
    </View>
  );
};

const Lockup = ({ color = 'TEDRed.0', ...props }: { color?: string }) => {
  const theme = useTheme();
  return (
    <View {...props} style={{ lineHeight: 0 }} sx={{ color }}>
      <svg width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 460 41">
        <title>TED: Ideas worth spreading</title>
        <g>
          <path
            fill={theme.colors.gray[1]}
            d="M117.708067,5.848485 L120.110116,5.848485 L120.110116,33.1212123 L117.708067,33.1212123 L117.708067,5.848485 Z M141.128041,5.848485 L141.128041,32.6545687 L139.097408,32.6545687 L139.097408,28.8695704 C137.691585,31.5657335 135.244411,33.1212123 131.964156,33.1212123 C126.549133,33.1212123 123.112676,29.0769675 123.112676,22.9587512 C123.112676,16.8405348 126.549133,12.79629 131.964156,12.79629 C135.140276,12.79629 137.587449,14.2999195 138.941205,16.8405348 L138.941205,5.848485 L141.128041,5.848485 Z M139.04534,22.9587512 C139.04534,17.9293699 136.389896,14.7147138 132.224494,14.7147138 C128.007024,14.7147138 125.403648,18.0330685 125.403648,23.0624497 C125.403648,28.091831 128.059092,31.2027885 132.224494,31.2027885 C136.389896,31.2027885 139.04534,28.0399817 139.04534,22.9587512 Z M162.145967,23.7844776 L146.901512,23.7844776 C147.108216,28.5293755 149.536994,31.1824368 153.567731,31.1824368 C156.719974,31.1824368 158.838695,29.3457021 159.458809,26.5395796 L161.680882,26.5395796 C160.854064,30.3661102 158.011878,33.1212123 153.516055,33.1212123 C148.090062,33.1212123 144.731114,29.1416204 144.731114,23.1212123 C144.731114,17.2028449 148.038386,13.1212123 153.464379,13.1212123 C159.148752,13.1212123 162.145967,17.5599878 162.145967,23.0701919 L162.145967,23.7844776 Z M146.901512,21.8967225 L159.768866,21.8967225 C159.562161,17.968151 157.391764,15.0089674 153.412703,15.0089674 C149.692022,15.0089674 147.31492,17.5089674 146.901512,21.8967225 Z M181.962869,13.5293755 L181.962869,32.6620286 L179.953462,32.6620286 L179.953462,29.0395796 C178.613858,31.5906 176.295313,33.1212123 173.100873,33.1212123 C167.742456,33.1212123 164.548016,29.1416204 164.548016,23.1212123 C164.548016,17.1008041 167.742456,13.1212123 173.100873,13.1212123 C176.192266,13.1212123 178.510812,14.5497837 179.850416,16.9987633 L179.850416,13.5803959 L181.962869,13.5803959 L181.962869,13.5293755 Z M179.901939,23.0701919 C179.901939,18.1212123 177.531871,14.957947 173.306965,14.957947 C169.185107,14.957947 166.711992,18.2232531 166.711992,23.1722327 C166.711992,28.1212123 169.185107,31.1824368 173.306965,31.1824368 C177.480347,31.1824368 179.901939,28.0701919 179.901939,23.0701919 Z M184.965429,26.7436613 L187.136818,26.7436613 C187.395316,29.7538653 189.101407,31.2844776 192.978886,31.2844776 C196.442768,31.2844776 198.407357,30.1110082 198.407357,27.6620286 C198.407357,25.7232531 197.166564,24.7028449 193.650983,24.0906 L191.686393,23.7334572 C187.550416,22.968151 185.585826,21.335498 185.585826,18.3252939 C185.585826,15.1110082 188.170812,13.1212123 192.513589,13.1212123 C197.735261,13.1212123 200.010049,15.468151 200.165148,19.0395796 L197.99376,19.0395796 C197.786961,16.2844776 196.184269,14.9069266 192.513589,14.9069266 C189.463305,14.9069266 187.705515,16.1314164 187.705515,18.2742735 C187.705515,20.4171306 189.308206,21.2844776 192.30679,21.8457021 L194.271379,22.2028449 C198.717556,23.0191715 200.578746,24.6008041 200.578746,27.5599878 C200.578746,31.2844776 197.476762,33.1212123 193.030586,33.1212123 C187.912314,33.1212123 185.223928,30.8252939 184.965429,26.7436613 Z M237.209988,13.7272729 L230.391269,33.1212123 L228.118363,33.1212123 L224.399061,21.6917173 C223.830835,19.9850507 223.262608,18.1232325 222.797696,16.3648486 C222.332783,18.1232325 221.764556,19.9850507 221.19633,21.6917173 L217.477029,33.1212123 L215.204123,33.1212123 L208.385404,13.7272729 L210.65831,13.7272729 L214.377611,24.3810103 C215.100809,26.5014143 215.720692,28.5701012 216.392233,30.638788 C217.012116,28.518384 217.632,26.4496971 218.30354,24.3810103 L221.7129,13.7272729 L223.985806,13.7272729 L227.446822,24.3810103 C228.118363,26.4496971 228.738246,28.5701012 229.306473,30.638788 C229.926356,28.5701012 230.597897,26.4496971 231.269437,24.3810103 L235.040395,13.7272729 L237.209988,13.7272729 Z M237.209988,23.1212123 C237.209988,17.1008041 240.875005,13.1212123 246.19186,13.1212123 C251.560336,13.1212123 255.225353,17.1008041 255.225353,23.1212123 C255.225353,29.1416204 251.560336,33.1212123 246.19186,33.1212123 C240.926625,33.1212123 237.209988,29.1416204 237.209988,23.1212123 Z M253.057314,23.1212123 C253.057314,18.1722327 250.373077,15.0089674 246.24348,15.0089674 C242.113884,15.0089674 239.481266,18.1722327 239.481266,23.1212123 C239.481266,28.0701919 242.165503,31.2334572 246.24348,31.2334572 C250.373077,31.2334572 253.057314,28.1212123 253.057314,23.1212123 Z M268.43662,13.1738438 L268.43662,15.2264754 L267.572391,15.2264754 C263.302082,15.2264754 260.912743,17.910686 260.912743,22.0685807 L260.912743,33.1212123 L258.828426,33.1212123 L258.828426,13.4370017 L260.811069,13.4370017 L260.811069,17.5422649 C261.827809,15.2264754 263.861289,13.1212123 267.369043,13.1212123 C267.674065,13.1738438 268.029924,13.1738438 268.43662,13.1738438 Z M278.645327,15.1813143 L274.610947,15.1813143 L274.610947,33.1212123 L272.434505,33.1212123 L272.434505,15.1813143 L269.037132,15.1813143 L269.037132,13.2761924 L272.434505,13.2761924 L272.434505,7.66666682 L274.610947,7.66666682 L274.610947,13.2761924 L278.645327,13.2761924 L278.645327,15.1813143 Z M296.06018,20.1166493 L296.06018,33.1212123 L293.904806,33.1212123 L293.904806,20.2745994 C293.904806,16.5890957 292.012283,14.851644 288.647797,14.851644 C285.703872,14.851644 282.654807,17.0102962 282.602237,22.0647012 L282.602237,33.1212123 L280.446863,33.1212123 L280.446863,5.848485 L282.602237,5.848485 L282.602237,16.799696 C283.811349,14.4830936 286.124433,12.9035921 289.068358,12.9035921 C293.536815,12.9035921 296.06018,15.4834446 296.06018,20.1166493 Z M306.869399,26.7436613 L309.040787,26.7436613 C309.299286,29.7538653 311.005376,31.2844776 314.882856,31.2844776 C318.346737,31.2844776 320.311327,30.1110082 320.311327,27.6620286 C320.311327,25.7232531 319.070533,24.7028449 315.554952,24.0906 L313.590363,23.7334572 C309.454385,22.968151 307.489795,21.335498 307.489795,18.3252939 C307.489795,15.1110082 310.074781,13.1212123 314.417558,13.1212123 C319.63923,13.1212123 321.914018,15.468151 322.069117,19.0395796 L319.897729,19.0395796 C319.69093,16.2844776 318.088238,14.9069266 314.417558,14.9069266 C311.367275,14.9069266 309.609484,16.1314164 309.609484,18.2742735 C309.609484,20.4171306 311.212175,21.2844776 314.210759,21.8457021 L316.175349,22.2028449 C320.621525,23.0191715 322.482715,24.6008041 322.482715,27.5599878 C322.482715,31.2844776 319.380732,33.1212123 314.934555,33.1212123 C309.816283,33.1212123 307.127897,30.8252939 306.869399,26.7436613 Z M342.299616,23.3030305 C342.299616,29.4329006 338.853199,33.4848486 333.42248,33.4848486 C330.237155,33.4848486 327.782887,31.9783551 326.425208,29.4329006 L326.425208,40.3939395 L324.284251,40.3939395 L324.284251,13.5887447 L326.320771,13.5887447 L326.320771,17.3809525 C327.730669,14.6796538 330.184936,13.1212123 333.474698,13.1212123 C338.853199,13.1212123 342.299616,17.2251084 342.299616,23.3030305 Z M340.054223,23.1991344 C340.054223,18.1601733 337.338864,15.0432902 333.161388,15.0432902 C328.931693,15.0432902 326.320771,18.2640694 326.320771,23.3030305 C326.320771,28.3419915 328.983912,31.5627707 333.161388,31.5627707 C337.391082,31.5627707 340.054223,28.2380954 340.054223,23.1991344 Z M355.510884,13.1738438 L355.510884,15.2264754 L354.646655,15.2264754 C350.376346,15.2264754 347.987007,17.910686 347.987007,22.0685807 L347.987007,33.1212123 L345.902689,33.1212123 L345.902689,13.4370017 L347.885333,13.4370017 L347.885333,17.5422649 C348.902073,15.2264754 350.935553,13.1212123 354.443307,13.1212123 C354.799166,13.1738438 355.104188,13.1738438 355.510884,13.1738438 Z M372.925737,23.7844776 L357.681281,23.7844776 C357.887985,28.5293755 360.316763,31.1824368 364.347501,31.1824368 C367.499744,31.1824368 369.618465,29.3457021 370.238578,26.5395796 L372.460652,26.5395796 C371.633834,30.3661102 368.791647,33.1212123 364.295824,33.1212123 C358.869832,33.1212123 355.510884,29.1416204 355.510884,23.1212123 C355.510884,17.2028449 358.818156,13.1212123 364.244148,13.1212123 C369.928522,13.1212123 372.925737,17.5599878 372.925737,23.0701919 L372.925737,23.7844776 Z M357.681281,21.8967225 L370.548635,21.8967225 C370.341931,17.968151 368.171534,15.0089674 364.192472,15.0089674 C360.471792,15.0089674 358.043014,17.5089674 357.681281,21.8967225 Z M392.742638,13.5293755 L392.742638,32.6620286 L390.733232,32.6620286 L390.733232,29.0395796 C389.393628,31.5906 387.075082,33.1212123 383.880642,33.1212123 C378.522226,33.1212123 375.327785,29.1416204 375.327785,23.1212123 C375.327785,17.1008041 378.522226,13.1212123 383.880642,13.1212123 C386.972036,13.1212123 389.290581,14.5497837 390.630186,16.9987633 L390.630186,13.5803959 L392.742638,13.5803959 L392.742638,13.5293755 Z M390.681709,23.0701919 C390.681709,18.1212123 388.31164,14.957947 384.086735,14.957947 C379.964876,14.957947 377.491761,18.2232531 377.491761,23.1722327 C377.491761,28.1212123 379.964876,31.1824368 384.086735,31.1824368 C388.31164,31.1824368 390.681709,28.0701919 390.681709,23.0701919 Z M413.760564,5.848485 L413.760564,32.6545687 L411.72993,32.6545687 L411.72993,28.8695704 C410.324107,31.5657335 407.876933,33.1212123 404.596679,33.1212123 C399.181656,33.1212123 395.745199,29.0769675 395.745199,22.9587512 C395.745199,16.8405348 399.181656,12.79629 404.596679,12.79629 C407.772798,12.79629 410.219972,14.2999195 411.573728,16.8405348 L411.573728,5.848485 L413.760564,5.848485 Z M411.677863,22.9587512 C411.677863,17.9293699 409.022419,14.7147138 404.857016,14.7147138 C400.691614,14.7147138 398.03617,18.0330685 398.03617,23.0624497 C398.03617,28.091831 400.691614,31.2027885 404.857016,31.2027885 C409.022419,31.2027885 411.677863,28.0399817 411.677863,22.9587512 Z M417.363637,8.69268457 C417.363637,7.79767386 418.177234,7.06060621 419.165173,7.06060621 C420.153113,7.06060621 420.96671,7.79767386 420.96671,8.69268457 C420.96671,9.58769528 420.153113,10.3247629 419.165173,10.3247629 C418.235348,10.3247629 417.363637,9.58769528 417.363637,8.69268457 Z M418.002892,13.3783289 L420.385569,13.3783289 L420.385569,33.1212123 L418.002892,33.1212123 L418.002892,13.3783289 Z M440.183099,20.2235455 L440.183099,33.1212123 L438.027725,33.1212123 L438.027725,20.3801973 C438.027725,16.7249881 436.135202,15.001818 432.770717,15.001818 C429.826792,15.001818 426.777726,17.1427263 426.725156,22.1555846 L426.725156,33.1212123 L424.569783,33.1212123 L424.569783,13.5397343 L426.620016,13.5397343 L426.620016,17.1949435 C427.829128,14.7407316 430.194782,13.1219961 433.191277,13.1219961 C437.659735,13.0697788 440.183099,15.6284253 440.183099,20.2235455 Z M460,13.5380913 L460,32.3497594 C460,37.7170775 457.336552,41.0000002 451.497455,41.0000002 C446.73398,41.0000002 444.172972,38.4987257 443.814431,34.9031437 L445.914458,34.9031437 C446.272999,37.6128577 448.168145,39.1761542 451.548675,39.1761542 C455.851168,39.1761542 457.951194,36.9875391 457.951194,32.3497594 L457.951194,29.6921553 C456.51703,32.08921 454.212123,33.5482868 451.138914,33.5482868 C445.863238,33.5482868 442.585148,29.4837158 442.585148,23.3347495 C442.585148,17.1857832 445.863238,13.1212123 451.138914,13.1212123 C454.263343,13.1212123 456.67069,14.6323989 458.053635,17.1857832 L458.053635,13.5380913 L460,13.5380913 Z M457.951194,23.3347495 C457.951194,18.2800908 455.390186,15.049278 451.343794,15.049278 C447.194962,15.049278 444.736394,18.3843105 444.736394,23.3347495 C444.736394,28.2851885 447.246182,31.6202211 451.343794,31.6202211 C455.390186,31.6202211 457.951194,28.4415181 457.951194,23.3347495 Z"
          />
          <path
            fill="currentColor"
            d="M10.4394871,9.65670693 L0,9.65670693 L0,0 L32.4276569,0 L32.4276569,9.65670693 L21.9881697,9.65670693 L21.9881697,37.5757576 L10.4394871,37.5757576 L10.4394871,9.65670693 Z M34.2291933,0 L65.4558259,0 L65.4558259,9.65670693 L45.6314492,9.65670693 L45.6314492,14.3208307 L65.4558259,14.3208307 L65.4558259,23.2549269 L45.6314492,23.2549269 L45.6314492,27.9190506 L65.4558259,27.9190506 L65.4558259,37.5757576 L34.2291933,37.5757576 L34.2291933,0 Z M67.2573624,0 L86.2937077,0 C98.8748218,0 103.288092,9.26255563 103.288092,18.7221869 C103.288092,30.2839585 97.1622094,37.5757576 84.0541377,37.5757576 L67.2573624,37.5757576 L67.2573624,0 Z M78.9163005,27.9847425 L83.4613103,27.9847425 C90.7069781,27.9847425 91.7608934,22.1381649 91.7608934,18.5908031 C91.7608934,16.2258953 91.0363267,9.65670693 82.6050041,9.65670693 L78.9163005,9.65670693 L78.9163005,27.9847425 Z"
          />
        </g>
      </svg>
    </View>
  );
};

export { Logo, Lockup };
