import { Button, Card, Group, Text } from "@mantine/core"; import SecureImage from "../display/secure-img"; import { randomId } from "@mantine/hooks"; import { IconTrash } from "@tabler/icons-react"; import { UseFormReturnType } from "@mantine/form"; import { FlightFormSchema } from "@/util/types"; export default function ImageListInput({ label, form, field, mt = "sm", h = "100px", }: { label: string; form: UseFormReturnType< FlightFormSchema, (values: FlightFormSchema) => FlightFormSchema >; field: string; mt?: string; w?: string; h?: string; }) { const field_key = field as keyof typeof form.getTransformedValues; return ( <> {/* */} {label} {(form.getTransformedValues()[field_key] as string[]).map((id) => ( // {/* */} {/* */} // ))} // // // // {imageIds.map((id: string) => ( // setImageIds(imageIds.filter((i) => i !== id))} // > // // // ))} // // ); }