import { create } from 'zustand'

interface HomeStore {
  tab: 'story' | 'character'
  selectedTags: string[]
  setTab: (tab: 'story' | 'character') => void
  setSelectedTags: (selectedTags: string[]) => void
}

export const useHomeStore = create<HomeStore>((set) => ({
  tab: 'story',
  setTab: (tab: 'story' | 'character') => set({ tab }),
  selectedTags: [],
  setSelectedTags: (selectedTags: string[]) => set({ selectedTags }),
}))
