- 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.
27 lines
696 B
TypeScript
27 lines
696 B
TypeScript
export default function Heading({
|
|
title,
|
|
description,
|
|
variant = 'default',
|
|
}: {
|
|
title: string;
|
|
description?: string;
|
|
variant?: 'default' | 'small';
|
|
}) {
|
|
return (
|
|
<header className={variant === 'small' ? '' : 'mb-8 space-y-0.5'}>
|
|
<h2
|
|
className={
|
|
variant === 'small'
|
|
? 'mb-0.5 text-base font-medium'
|
|
: 'text-xl font-semibold tracking-tight'
|
|
}
|
|
>
|
|
{title}
|
|
</h2>
|
|
{description && (
|
|
<p className="text-sm text-muted-foreground">{description}</p>
|
|
)}
|
|
</header>
|
|
);
|
|
}
|