24 lines
569 B
TypeScript
24 lines
569 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import { DataFlowDesigner } from '@/components/dataflow/DataFlowDesigner';
|
|
import { useAuth } from '@/hooks/useAuth';
|
|
|
|
export default function DataFlowPage() {
|
|
const { user } = useAuth();
|
|
|
|
const handleSave = (relationships: any[]) => {
|
|
console.log('저장된 관계:', relationships);
|
|
// TODO: API 호출로 관계 저장
|
|
};
|
|
|
|
return (
|
|
<div className="h-screen bg-gray-50">
|
|
<DataFlowDesigner
|
|
companyCode={user?.companyCode || 'COMP001'}
|
|
onSave={handleSave}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|