Abstract areas

This commit is contained in:
1ilit
2024-03-11 23:59:04 +02:00
parent 787b7b9817
commit 9e32c49306
9 changed files with 170 additions and 150 deletions

6
src/hooks/useAreas.js Normal file
View File

@@ -0,0 +1,6 @@
import { useContext } from "react";
import { AreasContext } from "../context/AreasContext";
export default function useAreas() {
return useContext(AreasContext);
}