"use client"; import React, { useState, useEffect, useRef } from "react"; import { Icon } from "@iconify-icon/react"; const typeToColor: Record = { success: "bg-green-500", info: "bg-blue-500", warning: "bg-orange-500", error: "bg-red-500" }; const typeToIcon: Record = { success: "material-symbols:check-circle", info: "material-symbols:info", warning: "material-symbols:warning", error: "material-symbols:error" }; export default function Notice(props: { type: string; info: string; class?: string }) { if (props.type && props.info) return (
{props.info}
); }