import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{a as t,i as n,n as r,o as i,r as a,t as o}from"./jsx-runtime-DHSfUA5-.js";import{P as s,i as c}from"./test.id-DxQrYxPk.js";import{t as l}from"./navigationService-BNBSAd9W.js";import{t as u}from"./user-round-DuMTTg1k.js";var d=r(`book-open-text`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M16 12h2`,key:`7q9ll5`}],[`path`,{d:`M16 8h2`,key:`msurwy`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}],[`path`,{d:`M6 12h2`,key:`32wvfc`}],[`path`,{d:`M6 8h2`,key:`30oboj`}]]),f=r(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]);i();var p=o();function m({label:e,icon:t,testId:r,isActive:i,onClick:o}){return(0,p.jsxs)(`button`,{className:a(n.BottomTabBar.Button,i?n.BottomTabBar.ButtonActive:n.BottomTabBar.ButtonInactive),type:`button`,"data-test-id":r,"aria-current":i?`page`:void 0,onClick:o,children:[t,(0,p.jsx)(`span`,{className:n.BottomTabBar.Label,children:e})]})}function h({active:r}){let i=s(l);return(0,p.jsxs)(`nav`,{className:n.BottomTabBar.Root,"data-test-id":c.root,style:{zIndex:t.bottomTabBar},children:[(0,p.jsx)(m,{label:e(`tab.diary`,`Diary`),icon:(0,p.jsx)(d,{size:24}),testId:c.diary,isActive:r===`diary`,onClick:()=>i.navigate({path:`/diaries`,transition:`none`})}),(0,p.jsx)(m,{label:e(`tab.calendar`,`Calendar`),icon:(0,p.jsx)(f,{size:24}),testId:c.calendar,isActive:r===`calendar`,onClick:()=>i.navigate({path:`/calendar`,transition:`none`})}),(0,p.jsx)(m,{label:e(`tab.settings`,`My`),icon:(0,p.jsx)(u,{size:24}),testId:c.settings,isActive:r===`me`,onClick:()=>i.navigate({path:`/me`,transition:`none`})})]})}export{h as t};
//# sourceMappingURL=BottomTabBar-CgZg3kJ3.js.map