| 1 |
import { create } from 'zustand'; |
| 2 |
import { persist } from 'zustand/middleware'; |
| 3 |
|
| 4 |
export const usePageDescriptionStore = create( |
| 5 |
persist( |
| 6 |
(set) => ({ |
| 7 |
description: null, |
| 8 |
setDescription: (description) => set({ description }), |
| 9 |
reset: () => set({ description: null }), |
| 10 |
}), |
| 11 |
{ |
| 12 |
name: `extendify-page-creator-page-description-cache-${window.extSharedData.siteId}`, |
| 13 |
}, |
| 14 |
), |
| 15 |
); |
| 16 |
|