import Link from "next/link"; interface Props { items: { name: string; title: string; type?: ModelPropertyType; customType?: { name: string; route?: string }; description?: string; required: boolean }[]; } export enum ModelPropertyType { String, DateTime, Int, Decimal, Boolean, UUID, Cuid, } export default function DocPropertiesTable({ items }: Props) { return (
| Name | Title | Type | Description |
|---|---|---|---|
| {item.name} {item.required && *} | {item.title} | {item.customType && ( {item.customType.route ? ( {item.customType.name} ) : ( item.customType.name )} )} {item.type !== undefined && ModelPropertyType[item.type]} | {item.description} |