import { useState } from "react"; import { Check, ChevronsUpDown } from "lucide-react"; import { Button } from "@/src/components/ui/button"; import { Popover, PopoverContent, PopoverTrigger, } from "@/src/components/ui/popover"; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, } from "@/src/components/ui/command"; import { cn } from "@/src/utils/tailwind"; import { api } from "@/src/utils/api"; import type { DatasetSelectStepProps } from "./types"; export function DatasetSelectStep({ projectId, dataset, onDatasetSelect, }: DatasetSelectStepProps) { const [open, setOpen] = useState(false); // Fetch all datasets const datasets = api.datasets.allDatasetMeta.useQuery({ projectId, }); return (
Choose an existing dataset to add your observations to