'use client' import useCreateApp from "@/hooks/useCreateApp"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { AppEntry } from "../lib/types"; interface DataDisplayProps { appEntry: AppEntry; } const renderTableRow = (label: string, value: string | undefined) => ( {label} {value} ); const DataDisplay = () => { const { appEntry } = useCreateApp(); return ( A list of your recent invoices. Data Name Value {renderTableRow("ID", appEntry?.id)} {renderTableRow("Name", appEntry?.name)} {renderTableRow("Website", appEntry?.website || '')} {renderTableRow("Redirect URI", appEntry?.redirectUri)} {renderTableRow("Client ID", appEntry?.clientId)} {renderTableRow("Client Secret", appEntry?.clientSecret)} {renderTableRow("Vapid Key", appEntry?.vapidKey)}
); }; export default DataDisplay;