import './input-checkbox-radio.scss';
import {createElement} from "../../_global/scripts/helpers";

export const createInputCheckboxRadio = ({
  type= 'checkbox',
  checked = false,
  id = 'accepted',
  name = 'accepted',
  isRequired = true,
}) => {
  const input = createElement('input', []);
  input.id = id;
  input.name = name;
  input.type = type;
  input.checked = checked;
  input.required = isRequired;

  return input;
}