2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
|
|
import FediAuthModal from '../components/modals/FediAuthModal';
|
2022-05-13 06:52:19 +03:00
|
|
|
import FediAuthModalMock from './assets/mocks/fediauth-modal.png';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
const Example = () => (
|
|
|
|
<div>
|
|
|
|
<FediAuthModal />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Modals/FediAuth',
|
|
|
|
component: FediAuthModal,
|
2022-05-13 06:52:19 +03:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: FediAuthModalMock,
|
|
|
|
scale: 0.5,
|
|
|
|
},
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
} as ComponentMeta<typeof FediAuthModal>;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const Template: ComponentStory<typeof FediAuthModal> = args => <Example />;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|