v3/packages/design-system/templates/editor/Editor.tsx
Katalina acc604f83f
feat: add audit logging via webhook (#309)
* feat: add audit logging via webhook

* addd missing auditLogWebhook values in various places
2021-07-13 23:01:25 -04:00

19 lines
640 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} errors={props.errors} />
</AppShell>
);
};
export type EditorErrors = EditorShellProps['errors'];