ERP-node/frontend/components/dataflow/node-editor/nodes/LogNode.tsx

26 lines
627 B
TypeScript

"use client";
import { memo } from "react";
import { NodeProps } from "reactflow";
import { FileText } from "lucide-react";
import { CompactNodeShell } from "./CompactNodeShell";
export const LogNode = memo(({ data, selected }: NodeProps<any>) => {
const summary = data.logLevel
? `${data.logLevel} 레벨 로깅`
: "로그를 기록해요";
return (
<CompactNodeShell
color="#6B7280"
label={data.displayName || "로그"}
summary={summary}
icon={<FileText className="h-3.5 w-3.5" />}
selected={selected}
hasOutput={false}
/>
);
});
LogNode.displayName = "LogNode";