mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
25 lines
680 B
TypeScript
25 lines
680 B
TypeScript
import React from 'react';
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
import { subHours } from 'date-fns';
|
|
import Statusbar from '../components/ui/Statusbar/Statusbar';
|
|
|
|
export default {
|
|
title: 'owncast/Player/Status bar',
|
|
component: Statusbar,
|
|
parameters: {},
|
|
} as ComponentMeta<typeof Statusbar>;
|
|
|
|
const Template: ComponentStory<typeof Statusbar> = args => <Statusbar {...args} />;
|
|
|
|
export const Online = Template.bind({});
|
|
Online.args = {
|
|
online: true,
|
|
viewerCount: 42,
|
|
lastConnectTime: subHours(new Date(), 3),
|
|
};
|
|
|
|
export const Offline = Template.bind({});
|
|
Offline.args = {
|
|
online: false,
|
|
lastDisconnectTime: subHours(new Date(), 3),
|
|
};
|