mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-26 04:19:11 +00:00
17 lines
623 B
TypeScript
17 lines
623 B
TypeScript
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
|
|
import {
|
|
RolePicker,
|
|
RolePickerProps,
|
|
} from '@roleypoly/design-system/organisms/role-picker';
|
|
import * as React from 'react';
|
|
|
|
export type RolePickerTemplateProps = RolePickerProps & Omit<AppShellProps, 'children'>;
|
|
|
|
export const RolePickerTemplate = (props: RolePickerTemplateProps) => {
|
|
const { user, guilds, activeGuildId, ...pickerProps } = props;
|
|
return (
|
|
<AppShell activeGuildId={activeGuildId} user={user} guilds={guilds} small>
|
|
<RolePicker {...pickerProps} />
|
|
</AppShell>
|
|
);
|
|
};
|