'use client'; import React, { useState } from 'react'; import dynamic from 'next/dynamic'; import { InputTextArea } from '@/components/ui/inputs/InputTextArea'; import type { ReportElements } from '@buster/server-shared/reports'; import { useQuery } from '@tanstack/react-query'; import { mainApiV2 } from '@/api/buster_rest/instances'; import { useDebounceEffect } from '@/hooks'; import { useThemesConfig } from '@/components/ui/report/ThemeWrapper/useThemesConfig'; import { cn } from '@/lib/utils'; const ReportEditor = dynamic( () => import('@/components/ui/report/ReportEditor').then((mod) => mod.ReportEditor), { ssr: false, loading: () =>
{JSON.stringify(data.elements, null, 2)}