import { ReactNode } from 'react';
import clsx from 'clsx';
import { Widget } from '@@/Widget';
import { Alert } from '@@/Alert';
interface Props {
icon: ReactNode;
iconBackgroundClassName?: string;
subtitleLabel?: string;
subtitleClassName?: string;
title: string;
badge?: ReactNode;
description?: ReactNode;
rightInfo?: ReactNode;
actionBar?: ReactNode;
isLoading?: boolean;
errorMessage?: string;
}
export function ResourceDetailHeader({
icon,
iconBackgroundClassName = 'bg-group-accent-3 th-dark:bg-group-accent-10',
subtitleLabel,
subtitleClassName = 'text-group-accent-10 th-dark:text-group-accent-8',
title,
badge,
description,
rightInfo,
actionBar,
isLoading,
errorMessage,
}: Props) {
return (