Skip to content

Commit

Permalink
feat(emulsif-245): restructure video stories file
Browse files Browse the repository at this point in the history
  • Loading branch information
robherba committed Aug 19, 2024
1 parent 7724f79 commit 0b06b62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/videos/videos.stories.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import video from './video.twig';

import videoEmbedData from './video-embed.yml';
import videoHTML5Data from './video-html5.yml';
import { props as videoEmbedProps } from './video-embed.component.yml';
import { props as videoHTML5Props } from './video-html5.component.yml';

import { mapDataToTwig } from '../../util/dataTransformers';
import './video-embed';

/**
* Storybook Definition.
*/
export default { title: 'Components/Media' };

const videoEmbedData = mapDataToTwig(videoEmbedProps.properties);
const videoHTML5Data = mapDataToTwig(videoHTML5Props.properties);

export const videoEmbed = () => video(videoEmbedData);
export const videoHtml5 = () => video(videoHTML5Data);

0 comments on commit 0b06b62

Please sign in to comment.