mirror of
https://github.com/owncast/owncast.git
synced 2024-12-26 11:08:43 +03:00
22 lines
700 B
TypeScript
22 lines
700 B
TypeScript
|
import React from 'react';
|
||
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||
|
import FatalErrorStateModal from '../components/modals/FatalErrorModal';
|
||
|
|
||
|
export default {
|
||
|
title: 'owncast/Modals/Global error state',
|
||
|
component: FatalErrorStateModal,
|
||
|
parameters: {},
|
||
|
} as ComponentMeta<typeof FatalErrorStateModal>;
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
const Template: ComponentStory<typeof FatalErrorStateModal> = args => (
|
||
|
<FatalErrorStateModal {...args} />
|
||
|
);
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
export const Example = Template.bind({});
|
||
|
Example.args = {
|
||
|
title: 'Example error title',
|
||
|
message: 'Example error message',
|
||
|
};
|