🎥 Make videos programmatically with React
new replay icon
Jonny Burger6b15eb9390e5
diff --git a/packages/convert/app/components/timing-editor/ReplayIcon.tsx b/packages/convert/app/components/timing-editor/ReplayIcon.tsxnew file mode 100644index 0000000000..dd308d8369--- /dev/null+++ b/packages/convert/app/components/timing-editor/ReplayIcon.tsx@@ -0,0 +1,15 @@+import type {SVGProps} from 'react';++export const ReplayIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {+ return (+ <svg+ fill="currentcolor"+ viewBox="0 0 640 640"+ width={22}+ height={22}+ {...props}+ >+ <path d="M88 256L232 256C241.7 256 250.5 250.2 254.2 241.2C257.9 232.2 255.9 221.9 249 215L202.3 168.3C277.6 109.7 386.6 115 455.8 184.2C530.8 259.2 530.8 380.7 455.8 455.7C380.8 530.7 259.3 530.7 184.3 455.7C174.1 445.5 165.3 434.4 157.9 422.7C148.4 407.8 128.6 403.4 113.7 412.9C98.8 422.4 94.4 442.2 103.9 457.1C113.7 472.7 125.4 487.5 139 501C239 601 401 601 501 501C601 401 601 239 501 139C406.8 44.7 257.3 39.3 156.7 122.8L105 71C98.1 64.2 87.8 62.1 78.8 65.8C69.8 69.5 64 78.3 64 88L64 232C64 245.3 74.7 256 88 256z" />+ </svg>+ );+};diff --git a/packages/convert/app/components/timing-editor/Sidebar.tsx b/packages/convert/app/components/timing-editor/Sidebar.tsxindex 1b210da6e3..384af936b2 100644--- a/packages/convert/app/components/timing-editor/Sidebar.tsx+++ b/packages/convert/app/components/timing-editor/Sidebar.tsx@@ -1,7 +1,8 @@-import {Card} from '@remotion/design';+import {Button, Card} from '@remotion/design';import React from 'react';import {Tabs, TabsList, TabsTrigger} from '~/components/ui/tabs';import {InterpolateEditor} from './InterpolateEditor';+import {ReplayIcon} from './ReplayIcon';import {SineEditor} from './SineEditor';import {SpringEditor} from './SpringEditor';import type {TimingComponent, TimingConfig} from './types';@@ -119,16 +120,16 @@ export const Sidebar: React.FC<{removeComponent,}) => {return (- <div className="p-4 flex flex-col flex-1 w-full overflow-y-auto md:w-[400px] md:h-full md:flex-none overflow-y-auto">+ <div className="p-4 flex flex-col flex-1 w-full md:w-[400px] md:h-full md:flex-none overflow-y-auto"><div className="flex items-center justify-between mb-4"><div className="font-brand font-bold text-xl">Timing Editor</div>- <button+ <Buttontype="button"onClick={onReplay}- className="px-3 py-1 text-sm bg-[#0b84f3] text-white rounded font-brand font-medium hover:bg-[#0a75d9] transition-colors"+ className="rounded-full w-10 h-10">- Replay- </button>+ <ReplayIcon />+ </Button></div>{components.map((component) => (