2022-04-28 23:36:05 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-05-03 23:17:05 +02:00
|
|
|
import SingleFollower from '../components/Follower';
|
2022-04-28 23:36:05 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Follower',
|
2022-05-03 23:17:05 +02:00
|
|
|
component: SingleFollower,
|
2022-04-28 23:36:05 +02:00
|
|
|
parameters: {},
|
2022-05-03 23:17:05 +02:00
|
|
|
} as ComponentMeta<typeof SingleFollower>;
|
2022-04-28 23:36:05 +02:00
|
|
|
|
2022-05-03 23:17:05 +02:00
|
|
|
const Template: ComponentStory<typeof SingleFollower> = args => <SingleFollower {...args} />;
|
2022-04-28 23:36:05 +02:00
|
|
|
|
|
|
|
export const Example = Template.bind({});
|
|
|
|
Example.args = {
|
|
|
|
follower: {
|
|
|
|
name: 'John Doe',
|
|
|
|
description: 'User',
|
|
|
|
username: '@account@domain.tld',
|
|
|
|
image: 'https://avatars0.githubusercontent.com/u/1234?s=460&v=4',
|
|
|
|
link: 'https://yahoo.com',
|
|
|
|
},
|
|
|
|
};
|