import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{i as t,o as n,t as r}from"./jsx-runtime-DHSfUA5-.js";import{A as i,P as a}from"./test.id-DxQrYxPk.js";import{t as o}from"./navigationService-BNBSAd9W.js";import{t as s}from"./BottomTabBar-CgZg3kJ3.js";import{t as c}from"./chevron-right-359IEfVc.js";import{t as l}from"./useDiaryModel-BQGj9xs8.js";import{t as u}from"./CellList-UkuVgkhN.js";import{t as d}from"./UserAvatar-H2tjkpPO.js";n();var f=r();function p(){let n=a(o),r=l(),p=r.profile.name||e(`settings.myNotebook`,`My notebook`),m=r.entries.filter(e=>!e.deletedAt).length;return(0,f.jsxs)(`div`,{className:t.Page.GroupedRoot,"data-test-id":i.page,children:[(0,f.jsxs)(`main`,{className:t.MePage.Content,"data-test-id":i.content,children:[(0,f.jsxs)(`button`,{className:t.MePage.ProfileButton,type:`button`,"data-test-id":i.profile,onClick:()=>n.navigate({path:`/settings/profile`}),children:[(0,f.jsx)(d,{size:64,className:t.Common.AvatarRounded}),(0,f.jsxs)(`span`,{className:t.MePage.ProfileBody,children:[(0,f.jsx)(`span`,{className:t.MePage.ProfileName,children:p}),(0,f.jsx)(`span`,{className:t.MePage.ProfileMeta,children:e(`me.entriesRecorded`,`{0} entries recorded`,m)})]}),(0,f.jsx)(c,{size:20,strokeWidth:1.75,className:t.MePage.Chevron})]}),(0,f.jsx)(u,{items:[{label:e(`identity.title`,`Identities`),testId:i.identities,onClick:()=>n.navigate({path:`/identities`})},{label:e(`settings.title`,`Settings`),testId:i.preferences,onClick:()=>n.navigate({path:`/settings`})}]})]}),(0,f.jsx)(s,{active:`me`})]})}export{p as MePage};
//# sourceMappingURL=me-BgAOARqb.js.map