mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
20 lines
637 B
JavaScript
20 lines
637 B
JavaScript
const React = require('react');
|
|
const { storiesOf } = require('@storybook/react');
|
|
const { action } = require('@storybook/addon-actions');
|
|
const { MetaItem } = require('stremio/common');
|
|
const styles = require('./styles');
|
|
|
|
storiesOf('MetaItem', module).add('SimpleMetaItem', () => (
|
|
<MetaItem
|
|
className={styles['meta-item-container']}
|
|
id={'meta-item-id'}
|
|
type={'movie'}
|
|
name={'Demo item'}
|
|
posterShape={'poster'}
|
|
poster={'/images/intro_background.jpg'}
|
|
title={'Demo item'}
|
|
progress={0.4}
|
|
playIcon={true}
|
|
onClick={action('Demo item clicked')}
|
|
/>
|
|
));
|