import { ChatScene } from '../../chat-scene'; /** Class the editor targets to write the active mode's token values directly onto * this wrapper — so the preview reflects the editor's mode independently of any * ancestor `.dark` (e.g. Storybook's own dark theme), and only the canvas reskins. */ export const CANVAS_CLASS = 'kitn-editor-canvas'; /** Live preview: the real chat app scene + a small rail for tokens the chat * doesn't naturally surface. The editor sets the active palette on CANVAS_CLASS; * the `.dark` class is also applied for any `dark:`-keyed component styling. */ export function Canvas(props: { mode: 'light' | 'dark' }) { return (