import React, { ReactNode } from "react"; export interface FlowerBIChartBox extends React.HTMLAttributes { id?: string; title?: string; children?: ReactNode | ReactNode[]; state?: string; } export function FlowerBIChartBox({id, title, children, state}: FlowerBIChartBox) { return (
{title}
{state === "init" ? (
Loading...
) : ( <>{children} )}
); }