mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-20 06:25:26 +00:00
Abstract areas
This commit is contained in:
6
src/hooks/useAreas.js
Normal file
6
src/hooks/useAreas.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { AreasContext } from "../context/AreasContext";
|
||||
|
||||
export default function useAreas() {
|
||||
return useContext(AreasContext);
|
||||
}
|
Reference in New Issue
Block a user