"use client"; import { RenderComponentWithSnippet } from "@/app/components/render"; import { useState } from "react"; import { Button } from "@calcom/ui/components/button"; import { ErrorToast, showToast, SuccessToast, WarningToast } from "@calcom/ui/components/toast"; export const BasicExample: React.FC = () => ( { showToast("This is a basic toast message", "success"); }}> Show Toast { showToast("This toast will disappear in 2 seconds", "success", { duration: 2000 }); }}> Custom Duration { showToast("This toast will persist until dismissed", "success", { duration: Infinity }); }}> Persistent Toast ); export const RawToastComponents = () => { const [toastVisible, setToastVisible] = useState(true); const toastId = "123"; const onClose = () => { setToastVisible(false); }; const handleReplay = () => { setToastVisible(true); }; return ( Replay Toasts ); };