2022-04-29 00:36:05 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-07-12 04:29:58 +03:00
|
|
|
import SingleFollower from '../components/ui/Followers/Follower';
|
2022-05-20 23:12:16 +03:00
|
|
|
import SingleFollowerMock from './assets/mocks/single-follower.png';
|
2022-04-29 00:36:05 +03:00
|
|
|
|
|
|
|
export default {
|
2022-05-18 00:24:48 +03:00
|
|
|
title: 'owncast/Components/Followers/Single Follower',
|
2022-05-04 00:17:05 +03:00
|
|
|
component: SingleFollower,
|
2022-05-20 23:12:16 +03:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: SingleFollowerMock,
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: `Represents a single follower.`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-05-04 00:17:05 +03:00
|
|
|
} as ComponentMeta<typeof SingleFollower>;
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2022-05-04 00:17:05 +03:00
|
|
|
const Template: ComponentStory<typeof SingleFollower> = args => <SingleFollower {...args} />;
|
2022-04-29 00:36:05 +03: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',
|
|
|
|
},
|
|
|
|
};
|