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.
29 lines
669 B
29 lines
669 B
import { StoryFn, Meta } 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> |
|
); |
|
|
|
const meta = { |
|
title: 'owncast/Modals/IndieAuth', |
|
component: IndieAuthModal, |
|
parameters: { |
|
design: { |
|
type: 'image', |
|
url: Mock, |
|
scale: 0.5, |
|
}, |
|
}, |
|
} satisfies Meta<typeof IndieAuthModal>; |
|
|
|
export default meta; |
|
|
|
const Template: StoryFn<typeof IndieAuthModal> = () => <Example />; |
|
|
|
export const Basic = { |
|
render: Template, |
|
};
|
|
|