import type { ObjectMeta, Sentence } from '../types' interface Props { obj: ObjectMeta | null objects: ObjectMeta[] sentences: Sentence[] } function DetailRow({ label, value }: { label: string; value?: string }) { return (
{value || ''}
) } export default function DetailsPanel({ obj, objects, sentences }: Props) { const latestSentence = sentences.length > 0 ? sentences[sentences.length - 1] : null const parentDisplay = obj?.parent_id ? (() => { const parent = objects.find(o => o.id === obj.parent_id) return parent ? `${parent.index} - ${parent.title_de || 'ohne Titel'}` : '' })() : '' return ( <>

Details

{parentDisplay}

KI-Details

KI-Sentence

Einfach (für Kinder)

Fortgeschritten

) }