MCPcopy Create free account
hub / github.com/arctic-cli/interface / ToastProvider

Function ToastProvider

packages/web/components/ui/toast.tsx:39–50  ·  view source on GitHub ↗
({
  children,
  position = "bottom-right",
  ...props
}: ToastProviderProps)

Source from the content-addressed store, hash-verified

37}
38
39function ToastProvider({
40 children,
41 position = "bottom-right",
42 ...props
43}: ToastProviderProps) {
44 return (
45 <Toast.Provider toastManager={toastManager} {...props}>
46 {children}
47 <Toasts position={position} />
48 </Toast.Provider>
49 );
50}
51
52function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
53 const { toasts } = Toast.useToastManager();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected