import TextCopyBlock from "@/components/TextCopyBlock"; import { AlertColors } from "@/config/siteConfig"; import { Script } from "@/lib/types"; import { cn } from "@/lib/utils"; import { AlertCircle, NotepadText } from "lucide-react"; type NoteProps = { text: string; type: keyof typeof AlertColors; } export default function Alerts({ item }: { item: Script }) { return ( <> {item?.notes?.length > 0 && item.notes.map((note: NoteProps, index: number) => (
{note.type == "info" ? (