/**
 * Returns Dynamic Generated Classes
 */

function DayAlignClass(attributes, index_val) {
  let day_align_class = "";

  if ("left" == attributes.timelinAlignment) {
    day_align_class =
      "responsive-timeline__day-new responsive-timeline__day-left";
  } else if ("right" == attributes.timelinAlignment) {
    day_align_class =
      "responsive-timeline__day-new responsive-timeline__day-right";
  } else if ("center" == attributes.timelinAlignment) {
    if (index_val % 2 == "0") {
      day_align_class =
        "responsive-timeline__day-new responsive-timeline__day-right";
    } else {
      day_align_class =
        "responsive-timeline__day-new responsive-timeline__day-left";
    }
  }

  return [day_align_class];
}

export default DayAlignClass;
