import { Runtime } from "../../runtime/runtime.js";

export default class ProjectsRuntimeEvents {
    constructor({ modal }) {
        this.modal = modal;
        this.bind();
    }

    bind() {
        Runtime.bus.on("project-edit-requested", (payload) => {
            this.modal.open({
                title: "ویرایش پروژه",
                id: payload.id,
                record: payload.record,
            });
        });
    }
}
