'use client';

import { ProgressLine } from '@/components/shared/ProgressLine';
import { SectionHeader } from '@/ui/SectionHeader';
import React from 'react';

interface AdminHeaderPanelProps {
  title: string;
  description?: string;
  actions?: React.ReactNode;
  isLoading?: boolean;
}

/**
 * AdminHeaderPanel
 * 
 * Semantic header for admin pages.
 * Includes title, description, actions, and a progress line for loading states.
 */
export function AdminHeaderPanel({
  title,
  description,
  actions,
  isLoading = false
}: AdminHeaderPanelProps) {
  return (
    <SectionHeader
      title={title}
      description={description}
      actions={actions}
      loading={<ProgressLine isLoading={isLoading} />}
    />
  );
}
