"use client"

import { create } from "zustand"

interface RouterTransitionState {
  isTransitioning: boolean
  startRouterTransition: () => void
  stopRouterTransition: () => void
}

const useRouterTransitionStore = create<RouterTransitionState>((set) => ({
  isTransitioning: false,
  startRouterTransition: () => set(() => ({ isTransitioning: true })),
  stopRouterTransition: () => set(() => ({ isTransitioning: false })),
}))

export default useRouterTransitionStore
