15 lines
458 B
TypeScript
15 lines
458 B
TypeScript
"use client";
|
|
|
|
import type { NodeProps } from "@xyflow/react";
|
|
import type { CanvasNode } from "@/lib/canvas";
|
|
import { TransformableNode } from "./transformable-node";
|
|
import { CanvasTextEditor } from "./canvas-text-editor";
|
|
|
|
export function PlainTextNode(props: NodeProps<CanvasNode>) {
|
|
return (
|
|
<TransformableNode {...props}>
|
|
<CanvasTextEditor id={props.id} data={props.data} selected={props.selected} plain />
|
|
</TransformableNode>
|
|
);
|
|
}
|