2023-11-07 12:35:05 +09:00
|
|
|
import { Meta } from '@storybook/react';
|
2022-09-07 09:00:28 +02:00
|
|
|
import { FediAuthModal } from './FediAuthModal';
|
2022-09-03 20:38:52 +02:00
|
|
|
import FediAuthModalMock from '../../../stories/assets/mocks/fediauth-modal.png';
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
const meta = {
|
2022-04-27 23:19:20 -07:00
|
|
|
title: 'owncast/Modals/FediAuth',
|
|
|
|
component: FediAuthModal,
|
2022-05-12 20:52:19 -07:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: FediAuthModalMock,
|
|
|
|
scale: 0.5,
|
|
|
|
},
|
|
|
|
},
|
2023-11-07 12:35:05 +09:00
|
|
|
} satisfies Meta<typeof FediAuthModal>;
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export default meta;
|
2022-09-08 21:44:52 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const NotYetAuthenticated = {
|
|
|
|
args: {
|
|
|
|
displayName: 'fake-user',
|
|
|
|
authenticated: false,
|
|
|
|
accessToken: '',
|
|
|
|
},
|
2022-09-08 21:44:52 -07:00
|
|
|
};
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const Authenticated = {
|
|
|
|
args: {
|
|
|
|
displayName: 'fake-user',
|
|
|
|
authenticated: true,
|
|
|
|
accessToken: '',
|
|
|
|
},
|
2022-09-08 21:44:52 -07:00
|
|
|
};
|