diff --git a/src/components.tsx b/src/components.tsx index 67c06b9..b7f7626 100644 --- a/src/components.tsx +++ b/src/components.tsx @@ -7,122 +7,113 @@ export type Inbox = { token: string; }; -export class Layout extends React.Component { - render() { - return ( - -
- - - - - - - - -Convert email newsletters into Atom feeds
-- -
-Convert email newsletters into Atom feeds
++ +
+
- Sign up for the newsletter with
-
- {token}@kill-the-newsletter.com
-
- Subscribe to the Atom feed at
-
-
- https://www.kill-the-newsletter.com/feeds/{token}
- .xml
-
-
- Don’t share these addresses.
-
- They contain a security token that other people could use
-
- to send you spam and to control your newsletter subscriptions.
-
Enjoy your readings!
- - > - ); - } +export function Created({ inbox: { name, token } }: { inbox: Inbox }) { + return ( + <> +
+ Sign up for the newsletter with
+
+ {token}@kill-the-newsletter.com
+
+ Subscribe to the Atom feed at
+
+
+ https://www.kill-the-newsletter.com/feeds/{token}
+ .xml
+
+
+ Don’t share these addresses.
+
+ They contain a security token that other people could use
+
+ to send you spam and to control your newsletter subscriptions.
+
Enjoy your readings!
+ + > + ); } // https://validator.w3.org/feed/docs/atom.html