basic table with no info

This commit is contained in:
Kyle Corbitt
2023-06-22 08:05:22 -07:00
parent 0f3c381e1d
commit 788911898b
10 changed files with 227 additions and 14 deletions

View File

@@ -1,9 +1,27 @@
import { Center } from "@mantine/core";
import { useRouter } from "next/router";
import OutputsTable from "~/components/OutputsTable";
import AppNav from "~/components/nav/AppNav";
import { api } from "~/utils/api";
export default function Experiment() {
const router = useRouter();
const experiment = api.experiments.get.useQuery({ id: router.query.id as string });
if (!experiment.data) {
return (
<AppNav title="Experiment not found">
<Center>
<div>Experiment not found 😕</div>
</Center>
</AppNav>
);
}
return (
<AppNav>
<div>test content</div>
<AppNav title={experiment.data.label}>
<OutputsTable experimentId={router.query.id as string} />
</AppNav>
);
}