mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-19 17:50:13 +00:00
11 lines
280 B
TypeScript
11 lines
280 B
TypeScript
import { useContext } from "react";
|
|
import { SortContext } from "@/context/sort-context";
|
|
|
|
export function useSort() {
|
|
const context = useContext(SortContext);
|
|
if (context === undefined) {
|
|
throw new Error("useStatus must be used within a SortProvider");
|
|
}
|
|
return context;
|
|
}
|