"use client"; import { FC } from "react"; import { Grid } from "@mui/material"; import { DisplayTextField } from "ui"; import { Selectable } from "kysely"; import { Database } from "@/app/_lib/database"; import { Detail as InternalDetail } from "@/app/_components/Detail"; import { generateDeleteAction } from "@/app/_lib/actions"; import { serviceConfig } from "@/app/_config/config"; type DetailProps = { service: string; row: Selectable; }; export const Detail: FC = ({ service, row }) => { const { [service]: { entity, table, displayName, displayFields: fields }, } = serviceConfig; const deleteAction = generateDeleteAction({ entity, table }); return ( {fields.map((field) => ( ))} ); };