@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
14 lines (11 loc) • 349 B
JavaScript
'use client';
import { createContext, useContext } from "react";
//#region src/Toast/context.ts
const ToastContext = createContext({
position: "bottom-right",
swipeDirection: ["down", "right"]
});
const useToastContext = () => useContext(ToastContext);
//#endregion
export { ToastContext, useToastContext };
//# sourceMappingURL=context.mjs.map