Files
sase.tr/apps/web/src/lib/toast.ts
Fusion f4fea1e429
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
feat(FN-094): add comment line for deployment verification
- Added a comment line to main.ts for deployment verification purposes
2026-05-11 02:07:03 +00:00

22 lines
629 B
TypeScript

import { sileo } from "sileo";
export { Toaster } from "sileo";
interface ToastOptions {
description?: string;
duration?: number;
position?:
| "top-left"
| "top-center"
| "top-right"
| "bottom-left"
| "bottom-center"
| "bottom-right";
}
export const toast = {
success: (title: string, opts?: ToastOptions) => sileo.success({ title, ...opts }),
error: (title: string, opts?: ToastOptions) => sileo.error({ title, ...opts }),
info: (title: string, opts?: ToastOptions) => sileo.info({ title, ...opts }),
warning: (title: string, opts?: ToastOptions) => sileo.warning({ title, ...opts }),
};