You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
821 B
28 lines
821 B
import React from 'react'; |
|
import { ComponentStory, ComponentMeta } from '@storybook/react'; |
|
import { IndieAuthModal } from './IndieAuthModal'; |
|
import Mock from '../../../stories/assets/mocks/indieauth-modal.png'; |
|
|
|
const Example = () => ( |
|
<div> |
|
<IndieAuthModal authenticated displayName="fakeChatName" accessToken="fakeaccesstoken" /> |
|
</div> |
|
); |
|
|
|
export default { |
|
title: 'owncast/Modals/IndieAuth', |
|
component: IndieAuthModal, |
|
parameters: { |
|
design: { |
|
type: 'image', |
|
url: Mock, |
|
scale: 0.5, |
|
}, |
|
}, |
|
} as ComponentMeta<typeof IndieAuthModal>; |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
|
const Template: ComponentStory<typeof IndieAuthModal> = args => <Example />; |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
|
export const Basic = Template.bind({});
|
|
|