Files
gridpilot.gg/apps/website/components/admin/AdminHeaderPanel.tsx
2026-01-19 18:01:30 +01:00

35 lines
732 B
TypeScript

'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} />}
/>
);
}