Abstract types from editor

This commit is contained in:
1ilit
2024-03-13 01:27:42 +02:00
parent 1280219ac9
commit 24eecdc39b
8 changed files with 136 additions and 120 deletions

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

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