mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Merge remote-tracking branch 'gitlab/main' into nodenext
This commit is contained in:
109 files changed
+4218
-1
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
||||
import { useToast } from "@/hooks/useToast.js";
|
||||
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "@/components/ui/toast.js";
|
||||
export function Toaster() {
|
||||
const { toasts } = useToast();
|
||||
return (_jsxs(ToastProvider, { children: [toasts.map(function ({ id, title, description, action, ...props }) {
|
||||
return (_jsxs(Toast, { ...props, children: [_jsxs("div", { className: "grid gap-1", children: [title && _jsx(ToastTitle, { children: title }), description && (_jsx(ToastDescription, { children: description }))] }), action, _jsx(ToastClose, {})] }, id));
|
||||
}), _jsx(ToastViewport, {})] }));
|
||||
}
|
||||
Reference in new issue
Block a user