[Refactor] Organize logics files. and change import path as well.

This commit is contained in:
Sakamoto Shiina
2024-09-21 00:54:32 +09:00
parent 79e4d28176
commit 7573e99617
17 changed files with 20 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
import { useStore_SelectableLanguageList } from "@store";
import { useStdoutToPython } from "@logics/useStdoutToPython";
export const useSelectableLanguageList = () => {
const { asyncStdoutToPython } = useStdoutToPython();
const { currentSelectableLanguageList, updateSelectableLanguageList } = useStore_SelectableLanguageList();
const getSelectableLanguageList = () => {
asyncStdoutToPython("/get/list_languages");
};
return {
currentSelectableLanguageList,
getSelectableLanguageList,
updateSelectableLanguageList,
};
};