@autobusal/providers 1.1.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
@@ -0,0 +1,19 @@
1
+ import { create } from 'zustand';
2
+ import { BreadcrumbData } from '../types/pages';
3
+
4
+ export interface BreadcrumbsStore {
5
+ current?: string
6
+ data?: BreadcrumbData[]
7
+ save: (current?: string, data?: BreadcrumbData[]) => void
8
+ }
9
+
10
+ const useBreadcrumbsStore = create<BreadcrumbsStore>((set) => ({
11
+ current: undefined,
12
+ data: undefined,
13
+ save: (current, data) => set(() => ({
14
+ current,
15
+ data
16
+ }))
17
+ }));
18
+
19
+ export default useBreadcrumbsStore;
package/types/account.ts CHANGED
@@ -28,6 +28,8 @@ export interface NotificationData {
28
28
  status: number
29
29
  from?: string
30
30
  to?: string
31
+ type: string
32
+ icon: string
31
33
  created_at?: string
32
34
  updated_at?: string
33
35
  }
package/types/pages.ts CHANGED
@@ -15,4 +15,9 @@ export interface PageData {
15
15
  description_en: string
16
16
  description_sq: string
17
17
  description: string
18
+ }
19
+
20
+ export interface BreadcrumbData {
21
+ name: string
22
+ url: string
18
23
  }