paper-ai-release-24-07-21/app/store/ReduxProvider.tsx
Liuweiqing e7d296cd95 init
2024-01-21 23:08:25 +08:00

13 lines
305 B
TypeScript

import { Provider } from "react-redux";
import { store } from ".";
import { persistStore } from "redux-persist";
persistStore(store); // persist the store
export default function ReduxProvider({
children,
}: {
children: React.ReactNode;
}) {
return <Provider store={store}>{children}</Provider>;
}