import{n as e}from"./preload-helper-EQ20WQt-.js";import{o as t}from"./prop-types-DdDwMzX7.js";import{un as n}from"./status_quoted-C-NTTA7F.js";var r={wrapper:`_annual_report_announcement__wrapper`,closeButton:`_annual_report_announcement__closeButton`},i=e(),a=({year:e,state:a,onRequestBuild:o,onOpen:s,onDismiss:c})=>(0,i.jsxs)(`div`,{className:r.wrapper,"data-color-scheme":`dark`,children:[(0,i.jsx)(t,{id:`annual_report.announcement.title`,defaultMessage:`Wrapstodon {year} has arrived`,values:{year:e},tagName:`h2`}),(0,i.jsx)(t,{id:`annual_report.announcement.description`,defaultMessage:`Discover more about your engagement on Mastodon over the past year.`,tagName:`p`}),a===`available`?(0,i.jsx)(n,{onClick:s,children:(0,i.jsx)(t,{id:`annual_report.announcement.action_view`,defaultMessage:`View my Wrapstodon`})}):(0,i.jsx)(n,{loading:a===`generating`,onClick:o,children:(0,i.jsx)(t,{id:`annual_report.announcement.action_build`,defaultMessage:`Build my Wrapstodon`})}),a===`eligible`&&(0,i.jsx)(n,{onClick:c,plain:!0,className:r.closeButton,children:(0,i.jsx)(t,{id:`annual_report.announcement.action_dismiss`,defaultMessage:`No thanks`})})]});export{a as t};
//# sourceMappingURL=announcement-ckOURB8z.js.map