add provider

This commit is contained in:
2025-04-06 01:46:48 +08:00
parent 967c2f94f2
commit 82cc4dab87
3 changed files with 55 additions and 3 deletions

13
src/theme/Provider.tsx Normal file
View File

@@ -0,0 +1,13 @@
import { ToastContainer } from 'react-toastify';
type ToastProviderProps = {
children?: React.ReactNode;
};
export const ToastProvider = ({ children }: ToastProviderProps) => {
return (
<>
{children}
<ToastContainer />
</>
);
};