mirror of
https://github.com/owncast/owncast.git
synced 2024-12-25 18:48:31 +03:00
4f078e1ee4
* Migrate web action-buttons directory to CSF3 notation * Migrate web chat directory to CSF3 notation * Migrate web common directory to CSF3 notation * Migrate web layout directory to CSF3 notation * Migrate web modals directory to CSF3 notation * Migrate web ui directory to CSF3 notation * Migrate web video directory to CSF3 notation * Migrate web stories directory to CSF3 notation
26 lines
513 B
TypeScript
26 lines
513 B
TypeScript
import { Meta } from '@storybook/react';
|
|
import { subHours } from 'date-fns';
|
|
import { Statusbar } from './Statusbar';
|
|
|
|
const meta = {
|
|
title: 'owncast/Player/Status bar',
|
|
component: Statusbar,
|
|
parameters: {},
|
|
} satisfies Meta<typeof Statusbar>;
|
|
|
|
export default meta;
|
|
|
|
export const Online = {
|
|
args: {
|
|
online: true,
|
|
viewerCount: 42,
|
|
lastConnectTime: subHours(new Date(), 3),
|
|
},
|
|
};
|
|
|
|
export const Offline = {
|
|
args: {
|
|
online: false,
|
|
lastDisconnectTime: subHours(new Date(), 3),
|
|
},
|
|
};
|