2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-05-17 07:44:09 +03:00
|
|
|
import SocialLinks from '../components/ui/SocialLinks/SocialLinks';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
export default {
|
2022-05-18 00:24:48 +03:00
|
|
|
title: 'owncast/Components/Social links',
|
2022-04-28 09:19:20 +03:00
|
|
|
component: SocialLinks,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof SocialLinks>;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const Template: ComponentStory<typeof SocialLinks> = args => <SocialLinks {...args} />;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Populated = Template.bind({});
|
|
|
|
Populated.args = {
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
platform: 'github',
|
|
|
|
url: 'https://github.com/owncast/owncast',
|
|
|
|
icon: '/img/platformlogos/github.svg',
|
|
|
|
},
|
2022-05-17 07:44:09 +03:00
|
|
|
{
|
|
|
|
platform: 'Documentation',
|
|
|
|
url: 'https://owncast.online',
|
|
|
|
icon: '/img/platformlogos/link.svg',
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
{
|
|
|
|
platform: 'mastodon',
|
|
|
|
url: 'https://fosstodon.org/users/owncast',
|
|
|
|
icon: '/img/platformlogos/mastodon.svg',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Empty = Template.bind({});
|
|
|
|
Empty.args = {
|
|
|
|
links: [],
|
|
|
|
};
|