import e from"react";import{DropdownChevronUp as t,DropdownChevronDown as a}from"@vibe/icons";import o from"moment";import r from"./DatePickerHeader.module.scss.js";import{Icon as i}from"@vibe/icon/mockedClassNames";var n=function(n){var c=n.isMonthYearSelection,m=n.onToggleMonthYearPicker,l=n.hideNavigationKeys,s=n["data-testid"],d=n.ariaLabel,u=void 0===d?"Toggle select year":d,v=o(n.currentDate.valueOf()),f=v.format("MMMM"),b=v.format("YYYY");return e.createElement("div",{className:r.datePickerHeader},e.createElement("div",null,f+" "+b),!l&&e.createElement("button",{"data-testid":"".concat(s,"-year-toggle"),type:"button",className:r.button,"aria-label":u,onClick:m},e.createElement("div",{className:r.buttonContent},e.createElement(i,{iconType:"svg",icon:c?t:a,iconSize:24}))))};export{n as default};
//# sourceMappingURL=DatePickerHeader.js.map
