import{d as e}from"./objectSpread2-DtFdQpqy.js";import{a as t,n}from"./preload-helper-EQ20WQt-.js";import{c as r,l as i,w as a}from"./prop-types-DdDwMzX7.js";import{U as o}from"./poll-D7UTo6nN.js";import{Eo as s,ft as c}from"./time-BE5vfriQ.js";import{s as l}from"./react-router-OpaHPRhD.js";import{E as u}from"./compose_form_container-BX90g381.js";import{n as d}from"./useAccountId-hZkNcTVU.js";var f=e(t()),p=n(),m=r({title:{id:`confirmations.hide_featured_tab.title`,defaultMessage:`Hide "Featured" tab?`},intro:{id:`confirmations.hide_featured_tab.intro`,defaultMessage:`You can change this at any time under <i>Edit profile > Profile tab settings</i>.`},message:{id:`confirmations.hide_featured_tab.message`,defaultMessage:`This will hide the tab for users on {serverName} and other servers running the latest version of Mastodon. Other displays may vary.`},confirm:{id:`confirmations.hide_featured_tab.confirm`,defaultMessage:`Hide tab`}}),h=({onClose:e})=>{var t;let n=i(),r=s(),h=l(),{acct:g}=(t=o(d()))==null?{}:t,_=(0,f.useCallback)(()=>{r(c({show_featured:!1})),h.push(`/@${g}`)},[g,r,h]);return(0,p.jsx)(u,{title:n.formatMessage(m.title),extraContent:(0,p.jsxs)(`div`,{className:`prose`,children:[(0,p.jsx)(`p`,{children:n.formatMessage(m.intro,{i:e=>(0,p.jsx)(`i`,{children:e})})}),(0,p.jsx)(`p`,{children:n.formatMessage(m.message,{serverName:a})})]}),confirm:n.formatMessage(m.confirm),onConfirm:_,onClose:e})};export{h as ConfirmHideFeaturedTabModal};
//# sourceMappingURL=hide_featured_tab-DoedYzKy.js.map