2022-05-28 08:27:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { FatalErrorStateModal } from './FatalErrorStateModal';
|
2022-05-28 08:27:20 +03:00
|
|
|
|
|
|
|
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',
|
|
|
|
};
|