2023-11-07 06:35:05 +03:00
|
|
|
import { Meta } from '@storybook/react';
|
2022-05-08 02:13:06 +03:00
|
|
|
import { subHours } from 'date-fns';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { Statusbar } from './Statusbar';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
const meta = {
|
2022-05-13 03:59:40 +03:00
|
|
|
title: 'owncast/Player/Status bar',
|
2022-05-08 02:13:06 +03:00
|
|
|
component: Statusbar,
|
2022-04-28 09:19:20 +03:00
|
|
|
parameters: {},
|
2023-11-07 06:35:05 +03:00
|
|
|
} satisfies Meta<typeof Statusbar>;
|
2022-04-28 09:19:20 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export default meta;
|
2022-04-28 09:19:20 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const Online = {
|
|
|
|
args: {
|
|
|
|
online: true,
|
|
|
|
viewerCount: 42,
|
|
|
|
lastConnectTime: subHours(new Date(), 3),
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
};
|
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const Offline = {
|
|
|
|
args: {
|
|
|
|
online: false,
|
|
|
|
lastDisconnectTime: subHours(new Date(), 3),
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
};
|