You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
986 B
35 lines
986 B
import React from 'react'; |
|
import { ComponentStory, ComponentMeta } from '@storybook/react'; |
|
import SocialLinks from '../components/SocialLinks'; |
|
|
|
export default { |
|
title: 'owncast/Social links', |
|
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', |
|
}, |
|
{ platform: 'Documentation', url: 'https://owncast.online' }, |
|
{ |
|
platform: 'mastodon', |
|
url: 'https://fosstodon.org/users/owncast', |
|
icon: '/img/platformlogos/mastodon.svg', |
|
}, |
|
], |
|
}; |
|
|
|
export const Empty = Template.bind({}); |
|
Empty.args = { |
|
links: [], |
|
};
|
|
|