mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 21:08:36 +08:00
* chore: Update storybook to v9 * Pin next-export-i18n + remove outdated mock library * Replace old mocking library with MSW * Resolve knip unused code warnings
30 lines
670 B
TypeScript
30 lines
670 B
TypeScript
import { StoryFn, Meta } from '@storybook/nextjs';
|
|
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,
|
|
};
|