import { html } from "lit";
import { PluginBusyList } from "./component";
import { PluginBusyTask } from "../plugin-busy-manager";
import { translate } from "../../../locales";

export const template = (props: PluginBusyList) => html`
    <div class="container">
        <div class="title">${translate("busyManager.title")}</div>
        <div class="list">
            ${props.data?.busyTasks?.map(
              (item: PluginBusyTask) => html`
                <div class="plugin-busy-item">
                    <dss-typography tag="div" variant="body-3" fontweight="regular">
                        ${item.taskDescription}
                    </dss-typography>
                </div>`,
            )}
        </div>
    </div>
`;
