'use client';

import { Toaster as SonnerToaster } from 'sonner';

/**
 * 全局 toast 容器(sonner)— 页面挂一次,用 toast()/toast.success() 触发。
 * @category overlay
 */
export function Toaster() {
  return (
    <SonnerToaster
      position="top-center"
      richColors
      closeButton
      toastOptions={{
        classNames: {
          toast: 'shadow-lg border rounded-lg',
        },
      }}
    />
  );
}
