2023-11-07 12:35:05 +09:00
|
|
|
import { Meta } from '@storybook/react';
|
2022-09-07 09:00:28 +02:00
|
|
|
import { SingleFollower } from './SingleFollower';
|
2022-09-03 20:38:52 +02:00
|
|
|
import SingleFollowerMock from '../../../../stories/assets/mocks/single-follower.png';
|
2022-04-28 14:36:05 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
const meta = {
|
2022-05-17 14:24:48 -07:00
|
|
|
title: 'owncast/Components/Followers/Single Follower',
|
2022-05-03 14:17:05 -07:00
|
|
|
component: SingleFollower,
|
2022-05-20 13:12:16 -07:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: SingleFollowerMock,
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: `Represents a single follower.`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-11-07 12:35:05 +09:00
|
|
|
} satisfies Meta<typeof SingleFollower>;
|
2022-04-28 14:36:05 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export default meta;
|
2022-04-28 14:36:05 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const 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',
|
|
|
|
},
|
2022-04-28 14:36:05 -07:00
|
|
|
},
|
|
|
|
};
|