Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | import { cn } from '@/lib/utils'; |
| 2 | |
| 3 | interface VideoProps { |
| 4 | src: string; |
| 5 | caption?: string; |
| 6 | poster?: string; |
| 7 | autoPlay?: boolean; |
| 8 | loop?: boolean; |
| 9 | muted?: boolean; |
| 10 | controls?: boolean; |
| 11 | className?: string; |
| 12 | } |
| 13 | |
| 14 | export function Video({ |
| 15 | src, |
| 16 | caption, |
| 17 | poster, |
| 18 | autoPlay = false, |
| 19 | loop = true, |
| 20 | muted = true, |
| 21 | controls = true, |
| 22 | className, |
| 23 | }: VideoProps) { |
| 24 | return ( |
| 25 | <figure className={cn('my-8', className)}> |
| 26 | <video |
| 27 | src={src} |
| 28 | poster={poster} |
| 29 | autoPlay={autoPlay} |
| 30 | loop={loop} |
| 31 | muted={muted} |
| 32 | controls={controls} |
| 33 | playsInline |
| 34 | preload="metadata" |
| 35 | className="w-full rounded-lg border border-fd-border" |
| 36 | /> |
| 37 | {caption && ( |
| 38 | <figcaption className="mt-3 text-sm text-fd-muted-foreground text-center"> |
| 39 | {caption} |
| 40 | </figcaption> |
| 41 | )} |
| 42 | </figure> |
| 43 | ); |
| 44 | } |