({
children,
position = "bottom-right",
...props
}: ToastProviderProps)
| 37 | } |
| 38 | |
| 39 | function 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 | |
| 52 | function Toasts({ position = "bottom-right" }: { position: ToastPosition }) { |
| 53 | const { toasts } = Toast.useToastManager(); |
nothing calls this directly
no outgoing calls
no test coverage detected