import { create } from "zustand";

interface Page_titleState {
  Page_title: string;
  setPage_title: (value: string) => void;
  title: string | null;
  set_title: (value: string) => void;
}

export const usePage_titleState = create<Page_titleState>((set) => ({
  Page_title: "",
  setPage_title: (value: string) => set(() => ({ Page_title: value })),
  title: null,
  set_title: (value: string) => set(() => ({ title: value })),
}));
