v3/packages/design-system/templates/editor/Editor.tsx
2021-07-17 19:23:35 -04:00

17 lines
562 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, ...appShellProps } =
props;
return (
<AppShell {...appShellProps} activeGuildId={guild.id} small double>
<EditorShell guild={guild} onGuildChange={onGuildChange} />
</AppShell>
);
};