import type { ReactNode } from "react";
import {
Button,
CodeBlock,
PageHeader,
PageHeaderActions,
PageHeaderContent,
PageHeaderDescription,
PageHeaderTitle,
} from "lumen-ui-kit";
import { CloseIcon, Icon } from "lumen-ui-kit/icons";
export function InlineField({
id,
label,
children,
className = "",
}: {
id: string;
label: ReactNode;
children: ReactNode;
className?: string;
}) {
return (
);
}
export function HeaderActions({
children,
className = "",
}: {
children: ReactNode;
className?: string;
}) {
return (
{children}
);
}
export function FilterBar({
children,
className = "",
}: {
children: ReactNode;
className?: string;
}) {
return (
{children}
);
}
export function Workbench({
title,
description,
actions,
toolbar,
children,
inspector,
flush = false,
}: {
title: ReactNode;
description?: ReactNode;
actions?: ReactNode;
toolbar?: ReactNode;
children: ReactNode;
inspector?: ReactNode;
flush?: boolean;
}) {
return (
{title}
{description ? (
{description}
) : null}
{actions ? {actions} : null}
{toolbar ?
{toolbar}
: null}
);
}
export function DetailInspector({
title,
subtitle,
onClose,
children,
}: {
title: ReactNode;
subtitle?: ReactNode;
onClose: () => void;
children: ReactNode;
}) {
return (
);
}
export function JsonInspector({
title,
subtitle,
value,
onClose,
}: {
title: ReactNode;
subtitle?: ReactNode;
value: unknown;
onClose: () => void;
}) {
return (
{JSON.stringify(value, null, 2)}
);
}
export function PageFrame({
children,
className = "",
}: {
children: ReactNode;
className?: string;
}) {
return (
{children}
);
}