mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-06-03 03:02:55 +08:00
Abstract tasks to a context
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { TasksContext } from "../context/TasksContext";
|
||||
|
||||
export default function useTasks() {
|
||||
return useContext(TasksContext);
|
||||
}
|
||||
Reference in New Issue
Block a user