import html from "../../services/html.js";
export default function template({ name, label, checked }) {
    const checkedAttr = checked ? "checked" : "";
    return html `
    <label for="${name}" class="checkbox__label">
      <input
        type="checkbox"
        class="checkbox__input"
        id="${name}"
        name="${name}"
        ${checkedAttr}
      />
      <span class="checkbox__checkmark"></span>
      ${label}
    </label>
  `;
}
