35 lines
717 B
TypeScript
35 lines
717 B
TypeScript
'use client';
|
|
|
|
import { ProgressLine } from '@/ui/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} />}
|
|
/>
|
|
);
|
|
}
|