feat: Add CMS context, hooks, and types for managing CMS data

- Implemented CmsContext and CmsProvider for global state management of CMS data.
- Created a custom hook `useGetCms` to fetch CMS data using React Query.
- Defined TypeScript interfaces for CMS response and its related data structures.
- Added error handling for data fetching in both the service and context.
This commit is contained in:
AmirReza Jamali
2025-11-11 15:22:12 +03:30
parent 910e8aed89
commit efbdb82535
12 changed files with 198 additions and 107 deletions
+1
View File
@@ -8,6 +8,7 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.90.7",
"apexcharts": "^5.3.5",
"axios": "^1.12.2",
"next": "15.5.5",