import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { VideoPlayer } from '.'; type TComponent = typeof VideoPlayer; const meta: Meta = { title: 'Video/VideoPlayer', component: VideoPlayer, tags: ['autodocs'], decorators: [ (Story) => (
), ], }; export default meta; export const Mp4: StoryObj = { args: { source: 'mp4', src: './video/video.mp4', }, }; export const Vimeo: StoryObj = { args: { source: 'vimeo', id: '347254165', }, }; export const YouTube: StoryObj = { args: { source: 'youtube', id: 'oOkGmK3_Hdg', }, };