- 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.
18 lines
427 B
TypeScript
18 lines
427 B
TypeScript
import type { HTMLAttributes } from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
export default function InputError({
|
|
message,
|
|
className = '',
|
|
...props
|
|
}: HTMLAttributes<HTMLParagraphElement> & { message?: string }) {
|
|
return message ? (
|
|
<p
|
|
{...props}
|
|
className={cn('text-sm text-red-600 dark:text-red-400', className)}
|
|
>
|
|
{message}
|
|
</p>
|
|
) : null;
|
|
}
|