import { Suspense, lazy, useRef } from "react"; import { CreateModal, type CreateModalRef } from "ui/modules/data/components/schema/create-modal/CreateModal"; import { Button } from "../../components/buttons/Button"; import * as AppShell from "../../layouts/AppShell/AppShell"; const DataSchemaCanvas = lazy(() => import("ui/modules/data/components/canvas/DataSchemaCanvas").then((m) => ({ default: m.DataSchemaCanvas })) ); export function DataSchemaIndex() { const createModalRef = useRef(null); return ( <> createModalRef.current?.open()} > Create new } > Schema Overview
); }