A calm place to write long-form, and publish it to the open social web.
skypress.blog/
1interface Props {
2 /** Public reading-page URL of the just-published / updated article. */
3 url: string;
4 /** True when an existing article was updated (vs. a brand-new publish). */
5 isEditing: boolean;
6}
7
8/**
9 * Glanceable confirmation that a publish/update finished, with a link to the
10 * live article. Rendered by Studio ABOVE the editor's keyed remount boundary so
11 * it survives the post-publish reset (a pill inside PublishPanel would be wiped).
12 */
13export default function PublishedPill( { url, isEditing }: Props ) {
14 return (
15 <p className="studio__published" role="status">
16 <span className="studio__published-label">
17 🌅 { isEditing ? 'Updated' : "It's live" }
18 </span>
19 <a
20 className="studio__published-link"
21 href={ url }
22 target="_blank"
23 rel="noopener noreferrer"
24 >
25 Read it →
26 </a>
27 </p>
28 );
29}