feat: SW-1577 Implemented booking code city search * feat: SW-1577 Implemented booking code city search * feat: SW-1557 Strict comparison * feat: SW-1557 Review comments fix Approved-by: Michael Zetterberg Approved-by: Pontus Dreij
14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
import { create } from "zustand"
|
|
|
|
interface BookingCodeFilterState {
|
|
activeCodeFilter: string
|
|
setFilter: (filter: string) => void
|
|
}
|
|
|
|
export const useBookingCodeFilterStore = create<BookingCodeFilterState>(
|
|
(set) => ({
|
|
activeCodeFilter: "discounted",
|
|
setFilter: (filter) => set({ activeCodeFilter: filter }),
|
|
})
|
|
)
|