first commit

This commit is contained in:
TuanVT
2026-05-23 09:48:07 +07:00
parent 03b9101bd5
commit b6ccde2c74
134 changed files with 7178 additions and 110 deletions
+42
View File
@@ -0,0 +1,42 @@
"use client";
import { CircleCheck, CircleAlert, BadgeCheck } from "lucide-react";
import clsx from "clsx";
export interface PropsIconToastifyCustom {
type: "success" | "info" | "warn" | "error";
}
const ICON_CONFIG = {
success: {
bg: "bg-[#06d7a0]",
icon: CircleCheck,
},
info: {
bg: "bg-[#4bc9f0]",
icon: CircleCheck,
},
warn: {
bg: "bg-[#ffd167]",
icon: CircleAlert,
},
error: {
bg: "bg-[#ee464c]",
icon: BadgeCheck,
},
} as const;
export default function IconToastifyCustom({ type }: PropsIconToastifyCustom) {
const { bg, icon: Icon } = ICON_CONFIG[type];
return (
<div
className={clsx(
"w-[50px] h-[50px] flex items-center justify-center rounded-full",
bg,
)}
>
<Icon size={20} className="text-white" />
</div>
);
}