"use client"; import { AlertCircleIcon, InfoIcon, XIcon } from "lucide-react"; import React from "react"; import { cn } from "@/lib/utils"; import { useEditor } from "../state/editor-context"; export const Notices: React.FC = () => { const { state, dispatch } = useEditor(); if (state.notices.length === 0) { return null; } return (