import{j as e}from"./client-By3tlFYA.js";import{u as M,r as a,a as x}from"./index-TEHZzOO_.js";import{H as C}from"./Helmet-BG0DmkIY.js";import{S}from"./bookmarks-fill-BJZqYgcx.js";import{u as j,a as i,dO as v,e9 as y,ag as B,d1 as L,d2 as _,ea as E}from"./useSelectableClick-DfiwdSfn.js";import{C as H}from"./column-KuFpKGtG.js";import{C as R}from"./column_header-BfYOMHar.js";import{S as A}from"./status_list-Bngvu9r8.js";import{M as D}from"./message-CVkQtbZv.js";import"./short_number-C9zm8Jg6.js";import"./numbers-BLyy7tyF.js";import"./index-DkCxcZFY.js";import"./relative_timestamp-BOUL06oe.js";import"./ready-DpOgoWSg.js";import"./index-DUY7J2K7.js";import"./skeleton-CwYXpOUk.js";import"./api-C8Dh2R2O.js";import"./index-DiPYjm3h.js";import"./load_locale-D22EJFIq.js";import"./scroll-BygYx8ga.js";import"./add-CxOAEcXl.js";import"./chevron_left-tY77j9LU.js";import"./unfold_more-Dg1Ay52N.js";import"./gif-BiYzVu8P.js";import"./info-onfAZF3m.js";import"./follow_button-DuNOQiXp.js";import"./status_quoted-DnIkn1ll.js";import"./verified_badge-BY2cs2A8.js";import"./load_gap-CAnYUL46.js";import"./scrollable_list-fGUhH9wV.js";import"./index-Bw18u8Yg.js";import"./scroll_context-eOIVBCKW.js";import"./schedule_idle_task-CDh0madc.js";import"./load_more-CmJ411l4.js";const n=x({heading:{id:"column.bookmarks",defaultMessage:"Bookmarks"}}),fo=({columnId:t,multiColumn:r})=>{const m=M(),s=j(),p=a.useRef(null),d=i(o=>v(o,"bookmarks")),k=i(o=>o.status_lists.getIn(["bookmarks","isLoading"],!0)),c=i(o=>!!o.status_lists.getIn(["bookmarks","next"]));a.useEffect(()=>{s(y())},[s]);const u=a.useCallback(()=>{s(t?B(t):L("BOOKMARKS",{}))},[s,t]),f=a.useCallback(o=>{s(_(t,o))},[s,t]),g=a.useCallback(()=>{var o;(o=p.current)==null||o.scrollTop()},[]),h=a.useCallback(()=>{s(E())},[s]),l=!!t,b=e.jsx(D,{id:"empty_column.bookmarked_statuses",defaultMessage:"You don't have any bookmarked posts yet. When you bookmark one, it will show up here."});return e.jsxs(H,{bindToDocument:!r,ref:p,label:m.formatMessage(n.heading),children:[e.jsx(R,{icon:"bookmarks",iconComponent:S,title:m.formatMessage(n.heading),onPin:u,onMove:f,onClick:g,pinned:l,multiColumn:r}),e.jsx(A,{trackScroll:!l,statusIds:d,scrollKey:"bookmarked_statuses-".concat(t),hasMore:c,isLoading:k,onLoadMore:h,emptyMessage:b,bindToDocument:!r,timelineId:"bookmarks"}),e.jsxs(C,{children:[e.jsx("title",{children:m.formatMessage(n.heading)}),e.jsx("meta",{name:"robots",content:"noindex"})]})]})};export{fo as default};
//# sourceMappingURL=bookmarked_statuses-index-adq69bbN.js.map
