import { createLocalStorage } from '../utils/createLocalStorage'; export type IFeedbackCategory = 'search' | 'newStrategyForm'; export const useUserSubmittedFeedback = (category: IFeedbackCategory) => { const key = `unleash-userSubmittedFeedback:${category}`; const { value: hasSubmittedFeedback, setValue: setHasSubmittedFeedback } = createLocalStorage(key, false); return { hasSubmittedFeedback, setHasSubmittedFeedback, }; };