mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
27 lines
580 B
TypeScript
27 lines
580 B
TypeScript
import { TbAlertCircle } from "react-icons/tb";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export type IconProps = {
|
|
className?: string;
|
|
title?: string;
|
|
};
|
|
|
|
const Warning = ({ className, ...props }: IconProps) => (
|
|
<TbAlertCircle
|
|
{...props}
|
|
className={twMerge("dark:text-amber-300 text-amber-700 cursor-help", className)}
|
|
/>
|
|
);
|
|
|
|
const Err = ({ className, ...props }: IconProps) => (
|
|
<TbAlertCircle
|
|
{...props}
|
|
className={twMerge("dark:text-red-300 text-red-700 cursor-help", className)}
|
|
/>
|
|
);
|
|
|
|
export const Icon = {
|
|
Warning,
|
|
Err,
|
|
};
|