feat: init settings

This commit is contained in:
hamster1963
2024-12-15 21:26:31 +08:00
parent c3668402d5
commit 9551d46800
10 changed files with 154 additions and 122 deletions
-12
View File
@@ -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