(error: TRPCClientErrorBase<any>)
| 6 | export const { TRPCProvider, useTRPC } = createTRPCContext<AppRouter>(); |
| 7 | |
| 8 | export function handleError(error: TRPCClientErrorBase<any>) { |
| 9 | toast('Error', { |
| 10 | description: error.message, |
| 11 | }); |
| 12 | } |
| 13 | |
| 14 | export function handleErrorToastOptions(options: ExternalToast) { |
| 15 | return (error: TRPCClientErrorBase<any>) => { |