tbh probably spending too long making this pretty at this point

This commit is contained in:
Kyle Corbitt
2023-06-23 20:21:48 -07:00
parent 8534477236
commit 87154fd4b7
4 changed files with 45 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
import { api } from "~/utils/api";
import { PromptVariant, Scenario } from "./types";
import { Center, Text } from "@chakra-ui/react";
import { Center, Spinner, Text } from "@chakra-ui/react";
import { useExperiment } from "~/utils/hooks";
export default function OutputCell({
@@ -33,7 +33,12 @@ export default function OutputCell({
</Center>
);
if (output.isLoading) return <Center h="100%">Loading...</Center>;
if (output.isLoading)
return (
<Center h="100%">
<Spinner />
</Center>
);
if (!output.data) return <Center h="100%">No output</Center>;