mirror of
https://github.com/temetro/temetro.git
synced 2026-08-03 07:30:56 +00:00
97bf9ed8cc
- Linear-inspired dark theme (app/globals.css), forced dark in layout
- Clinical sidebar (components/sidebar-02) with temetro brand
- AI chat UI (components/chat): Cursor-style input, UI-only mock replies
- Settings page (components/settings): Polar-style tabs/sections, UI only
- Route-group app shell: app/(app)/{layout,page,settings}
- shadcn (Base UI) + ai-elements component libraries
- CLAUDE.md: architecture notes + per-folder commit policy
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
618 B
TypeScript
27 lines
618 B
TypeScript
import type { ReactFlowProps } from "@xyflow/react";
|
|
import { Background, ReactFlow } from "@xyflow/react";
|
|
import type { ReactNode } from "react";
|
|
|
|
import "@xyflow/react/dist/style.css";
|
|
|
|
type CanvasProps = ReactFlowProps & {
|
|
children?: ReactNode;
|
|
};
|
|
|
|
const deleteKeyCode = ["Backspace", "Delete"];
|
|
|
|
export const Canvas = ({ children, ...props }: CanvasProps) => (
|
|
<ReactFlow
|
|
deleteKeyCode={deleteKeyCode}
|
|
fitView
|
|
panOnDrag={false}
|
|
panOnScroll
|
|
selectionOnDrag={true}
|
|
zoomOnDoubleClick={false}
|
|
{...props}
|
|
>
|
|
<Background bgColor="var(--sidebar)" />
|
|
{children}
|
|
</ReactFlow>
|
|
);
|