import DatasetManager from "~/components/dify-dataset-manager";
import datasetManagerStyles from "~/styles/components/dify-dataset-manager/index.css?url";
import sidebarStyles from "~/styles/components/dify-dataset-manager/sidebar.css?url";
import documentListStyles from "~/styles/components/dify-dataset-manager/document-list.css?url";

/**
 * 注册样式
 */
export function links() {
    return [
        { rel: "stylesheet", href: datasetManagerStyles },
        { rel: "stylesheet", href: sidebarStyles },
        { rel: "stylesheet", href: documentListStyles },
    ];
}

/**
 * 知识库管理首页
 */
export default function DatasetManagerIndex() {
    return (
        <div className="dataset-manager-page" style={{ height: '93vh', padding: '16px' }}>
            <DatasetManager />
        </div>
    );
}
