mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 20:09:11 +00:00
25 lines
649 B
TypeScript
25 lines
649 B
TypeScript
import { UserGuildPermissions } from '@roleypoly/types';
|
|
import { mastheadSlugs } from '../../fixtures/storyData';
|
|
import { ServerSetup } from './ServerSetup';
|
|
|
|
export default {
|
|
title: 'Organisms/Server Setup',
|
|
component: ServerSetup,
|
|
};
|
|
|
|
export const asAdmin = () => (
|
|
<ServerSetup
|
|
guildSlug={{ ...mastheadSlugs[1], permissionLevel: UserGuildPermissions.Admin }}
|
|
/>
|
|
);
|
|
export const asManager = () => (
|
|
<ServerSetup
|
|
guildSlug={{
|
|
...mastheadSlugs[1],
|
|
permissionLevel: UserGuildPermissions.Manager,
|
|
}}
|
|
/>
|
|
);
|
|
export const asUser = () => (
|
|
<ServerSetup guildSlug={{ ...mastheadSlugs[1], permissionLevel: 0 }} />
|
|
);
|