mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
27 lines
662 B
TypeScript
27 lines
662 B
TypeScript
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
|
|
import {
|
|
EditorShell,
|
|
EditorShellProps,
|
|
} from '@roleypoly/design-system/organisms/editor-shell';
|
|
|
|
export const EditorTemplate = (
|
|
props: EditorShellProps & Omit<AppShellProps, 'children'>
|
|
) => {
|
|
const {
|
|
guild,
|
|
onCategoryChange,
|
|
onMessageChange,
|
|
onGuildChange,
|
|
onRefreshCache,
|
|
...appShellProps
|
|
} = props;
|
|
return (
|
|
<AppShell {...appShellProps} activeGuildId={guild.id} small double>
|
|
<EditorShell
|
|
guild={guild}
|
|
onGuildChange={onGuildChange}
|
|
onRefreshCache={onRefreshCache}
|
|
/>
|
|
</AppShell>
|
|
);
|
|
};
|