import { ProjectSchema } from "../../client";
import { ModuleNames } from "../modules.tsx";

const isModuleInProject = (module: ModuleNames, project?: ProjectSchema | null) => {
    return project?.modules.findIndex(m => m.key === module.toString()) !== -1;
};

export default isModuleInProject;
