const{t}=useTranslation()// subscribe to locale changes
const{t}=useTranslation()// subscribe to locale changes
const{
isOpen:isModalOpen,
closeModal:closeSearchModal,
openModal:openSearchModal,
}=useModalState(ModalName.Search)
consttoggleOpen=useCallback(()=>{
consttoggleOpen=useCallback(()=>{
setOpen(!isOpen)
if(!searchRevampEnabled){
if(!searchRevampEnabled&&fullScreen){
setOpen((prev)=>!prev)
// disable body scroll on fullScreen search (was triggering the animation to hide the nav and affecting the search modal. Alternative option would be to create a separate search modal that is not a child of the nav component)
// disable body scroll on fullScreen search (was triggering the animation to hide the nav and affecting the search modal. Alternative option would be to create a separate search modal that is not a child of the nav component)