@arolariu/components
Version:
A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)! 😍
22 lines (21 loc) • 961 B
JavaScript
"use client";
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE_next_themes_25055421__ from "next-themes";
import * as __WEBPACK_EXTERNAL_MODULE_sonner__ from "sonner";
const Toaster = ({ ...props })=>{
const { theme = "system" } = (0, __WEBPACK_EXTERNAL_MODULE_next_themes_25055421__.useTheme)();
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_sonner__.Toaster, {
theme: theme,
className: "toaster group",
style: {
"--normal-bg": "var(--popover)",
"--normal-text": "var(--popover-foreground)",
"--normal-border": "var(--border)"
},
...props
});
};
var __webpack_exports__toast = __WEBPACK_EXTERNAL_MODULE_sonner__.toast;
export { Toaster, __webpack_exports__toast as toast };
//# sourceMappingURL=sonner.js.map