export class ActionsComponent {

    static render(section, data) {

        if (!section.actions) {

            return '';
        }

        const actions = section.actions.map(action => {

            return `
                <button
                    class="card-action"
                    data-action="${action}"
                    data-id="${data.id}"
                >
                    ${action}
                </button>
            `;

        }).join('');

        return `
            <div class="project-actions">
                ${actions}
            </div>
        `;
    }
}
