mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-06-21 02:20:41 +00:00
feat: init settings
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { FilterContext, FilterContextType } from "@/context/filter-context"
|
||||
import { useContext } from "react"
|
||||
|
||||
const useFilter = (): FilterContextType => {
|
||||
const context = useContext(FilterContext)
|
||||
if (context === undefined) {
|
||||
throw new Error("useFilter must be used within a FilterProvider")
|
||||
}
|
||||
return context
|
||||
}
|
||||
|
||||
export default useFilter
|
||||
Reference in New Issue
Block a user