v3/packages/design-system/templates/editor/Editor.tsx
Katalina ab3f718e6d
Feat/editor as preview (#294)
* try editor as preview

* add databinding for editor actions and message

* add actions, reordering base interactions

* add drag and drop ordering for categoriers

* category skeleton

* fix linting issues

* add role list and add button, non-functional

* bump packages

* add role search prototype

* yarn.lock sync

* fix lint

* remove cfw-emulator bin
2021-07-08 16:51:00 -05: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>
);
};