mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
refactor(icons): remove fontawesome EE-4459 refactor(icon) replace feather with lucide EE-4472
18 lines
485 B
TypeScript
18 lines
485 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
import clsx from 'clsx';
|
|
import { AlertTriangle } from 'lucide-react';
|
|
|
|
import { Icon } from '@@/Icon';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
export function FormError({ children, className }: PropsWithChildren<Props>) {
|
|
return (
|
|
<p className={clsx(`text-muted small vertical-center`, className)}>
|
|
<Icon icon={AlertTriangle} className="icon-warning" />
|
|
<span className="text-warning">{children}</span>
|
|
</p>
|
|
);
|
|
}
|