import { AlertCircle, NotepadText } from "lucide-react"; import type { Script } from "@/lib/types"; import TextCopyBlock from "@/components/text-copy-block"; import { AlertColors } from "@/config/site-config"; import { cn } from "@/lib/utils"; 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" ? ( ) : ( )} {TextCopyBlock(note.text)}

))} ); }