ERP-node/frontend/app/(main)/admin/dataflow/page.tsx

24 lines
677 B
TypeScript
Raw Normal View History

2025-09-05 16:19:31 +09:00
"use client";
2025-09-05 11:30:27 +09:00
2025-09-05 16:19:31 +09:00
import React from "react";
import { Toaster } from "react-hot-toast";
import { DataFlowDesigner } from "@/components/dataflow/DataFlowDesigner";
import { useAuth } from "@/hooks/useAuth";
2025-09-08 10:33:00 +09:00
import { TableRelationship } from "@/lib/api/dataflow";
2025-09-05 11:30:27 +09:00
export default function DataFlowPage() {
const { user } = useAuth();
2025-09-08 10:33:00 +09:00
const handleSave = (relationships: TableRelationship[]) => {
2025-09-05 16:19:31 +09:00
console.log("저장된 관계:", relationships);
2025-09-05 11:30:27 +09:00
// TODO: API 호출로 관계 저장
};
return (
<div className="h-screen bg-gray-50">
2025-09-08 10:33:00 +09:00
<DataFlowDesigner companyCode={user?.company_code || "COMP001"} onSave={handleSave} />
2025-09-05 16:19:31 +09:00
<Toaster />
2025-09-05 11:30:27 +09:00
</div>
);
}