/** @odoo-module **/

import {Component} from "@odoo/owl";
import {Dropdown} from "@web/core/dropdown/dropdown";
import {DropdownItem} from "@web/core/dropdown/dropdown_item";
import {useEnvTranslateContext} from "./translate_context";

export class TranslateMenuBasic extends Component {
    setup() {
        const translateContext = useEnvTranslateContext();
        // Needs to be bound to this for use in template
        this.getElements = async () => {
            this.elements = await translateContext.getItems(this.env);
        };
    }
}
TranslateMenuBasic.components = {
    Dropdown,
    DropdownItem,
};
TranslateMenuBasic.template = "web.TranslateMenu";
