- Updated import paths for various components to align with new directory structure. - Changed imports from 'row-actions', 'confirm-dialog', 'image-preview-button', and 'file-upload' to their respective new locations in 'data-display', 'dialogs', and 'inputs'. - Adjusted imports in multiple pages including purchase, restock, transaction, category, customer, product, raw-material, supplier, roles, and settings. - Ensured all relevant components are imported from their new locations to maintain functionality.
22 lines
529 B
TypeScript
22 lines
529 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
type PageHeaderProps = {
|
|
title: string;
|
|
description?: ReactNode;
|
|
actions?: ReactNode;
|
|
};
|
|
|
|
export function PageHeader({ title, description, actions }: PageHeaderProps) {
|
|
return (
|
|
<div className="flex items-center justify-between">
|
|
<div>
|
|
<h2 className="text-2xl font-semibold tracking-tight">
|
|
{title}
|
|
</h2>
|
|
{description}
|
|
</div>
|
|
{actions}
|
|
</div>
|
|
);
|
|
}
|