// Pinned text-editor pane. Always present in the workspace; not closable.

"use client";

import { TextCanvas } from "../../text-canvas/TextCanvas";
import { PaneFrame } from "../PaneFrame";
import type { FixtureData } from "../../../lib/fixtures/aristotle";

interface TextCanvasPaneProps {
  data: FixtureData;
  projectId: string;
}

export function TextCanvasPane({ data, projectId }: TextCanvasPaneProps) {
  return (
    <PaneFrame title="Narrative" subtitle="Your document" closable={false}>
      <div className="canvas-scroll">
        <TextCanvas data={data} projectId={projectId} />
      </div>
    </PaneFrame>
  );
}
