// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; // In production, use useToast() hook for proper positioning, stacking, and lifecycle. import {useRef} from 'react'; import {Toast} from '@astryxdesign/core/Toast'; import {useToast} from '@astryxdesign/core/Toast'; import {Button} from '@astryxdesign/core/Button'; import {VStack, HStack} from '@astryxdesign/core/Layout'; export default function ToastDismiss() { const toast = useToast(); const dismissRef = useRef<(() => void) | null>(null); return ( {}} />