import type { JSONObject } from "@vertesia/json"; import { useUITranslation } from "@vertesia/ui/i18n"; import { JSONCode } from './JSONCode.js'; import { JSONView } from './JSONView.js'; interface JSONDisplayProps { value: JSONObject; viewCode?: boolean; } export function JSONDisplay({ value, viewCode = false }: JSONDisplayProps) { const { t } = useUITranslation(); if (!value) { return (
{t('misc.noData')}
);
}
return (