import api from "../service/api"
import { create } from "zustand"

const useReportStore = create((set) => ({
    report: null,
    getReport: async() => {
        try{
            const res = await api.get("/report")
            if(res.status === 200){
                set({ report: res.data })
            }
        }catch(error){
            console.log(error)
        }
    }
}))

export default useReportStore