import clsx from 'clsx'; import { PropsWithChildren } from 'react'; import { useWidgetContext } from './Widget'; import { Loading } from './Loading'; interface Props { loading?: boolean; className?: string; } export function WidgetBody({ loading, className, children, }: PropsWithChildren) { useWidgetContext(); return (
{loading ? :
{children}
}
); }