chore: transfer repo

This commit is contained in:
Danijel
2026-01-19 20:21:14 +01:00
commit 7d2fb0c737
213 changed files with 18085 additions and 0 deletions

15
lib/redux/provider.tsx Normal file
View File

@@ -0,0 +1,15 @@
'use client';
import { useEffect } from 'react';
import { Provider } from 'react-redux';
import { initializeState } from './slices/boxSlice';
import { store } from './store';
export function ReduxProvider({ children }: { children: React.ReactNode }) {
// Inicijaliziraj stanje iz localStorage nakon što se komponenta montira
useEffect(() => {
store.dispatch(initializeState());
}, []);
return <Provider store={store}>{children}</Provider>;
}