import Card, { CardContent } from "@/components/Card"; import { cn, getAiConnectNoticeMarkup } from "@/lib/utils"; import { useState } from "@wordpress/element"; import TransitionWrapper from "./TransitionWrapper"; /** * The Themeisle SDK "Connect your AI agent" notice, rendered inside the page * like the Black Friday banner. The SDK script keeps handling the clicks: the * button opens its modal and the X records the dismissal, both by delegation * on the `data-ti-ai-notice` wrapper. */ const AiConnectNotice = ({ className }: { className?: string }) => { const markup = getAiConnectNoticeMarkup(); const [dismissed, setDismissed] = useState(false); if (!markup || dismissed) { return null; } return (
); } export default AiConnectNotice;