"use client";
import { Alert, AlertDescription, AlertTitle } from "@azmr/ui/display";
import { useState } from "react";
export default function DisplayAlerts() {
const [dismissed, setDismissed] = useState(false);
return (
Heads up
Your trial ends in 3 days.
Saved
Your changes are live.
Plan renews tomorrow
Update your card to avoid an interruption.
{/* The Alert does not hide itself: you own that state. */}
{!dismissed && (
setDismissed(true)}>
Payment failed
We could not charge the card on file.
)}
);
}