2020-01-16 00:44:35 +05:30
|
|
|
import React, { ComponentType, CSSProperties } from 'react';
|
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
|
|
|
|
import FooterMenu from './FooterMenu';
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
const PreviewWrapper: ComponentType<{ style?: CSSProperties }> = ({ style, children }) => (
|
|
|
|
<div style={{ padding: '25px', ...style }}>{children}</div>
|
|
|
|
);
|
2020-01-16 00:44:35 +05:30
|
|
|
|
|
|
|
storiesOf('Components', module).add('FooterMenu', () => (
|
2020-05-24 04:38:24 +05:30
|
|
|
<div style={{ display: 'flex' }}>
|
|
|
|
<PreviewWrapper>
|
|
|
|
<FooterMenu />
|
|
|
|
</PreviewWrapper>
|
|
|
|
<PreviewWrapper style={{ backgroundColor: '#232323' }}>
|
|
|
|
<FooterMenu />
|
|
|
|
</PreviewWrapper>
|
|
|
|
</div>
|
2020-01-16 00:44:35 +05:30
|
|
|
));
|