Experimental browser for the Atmosphere
Essentially the ParentComponent props form a discriminated union of the map components props. The example Claude gave you is a big more dynamic using a mapped type but that’s not strictly necessary. You can create the discriminated union by hand if you want it to be more explicit.
Feb 20, 2025, 5:03 AM
{ "uri": "at://did:plc:42mskmvnnan3h4dilcqvv6pl/app.bsky.feed.post/3liljak64ts2h", "cid": "bafyreidfnhluqz6g4kcxca642qhvsod7ez3w6ry3icw6bmpbeimhtrfovq", "value": { "text": "Essentially the ParentComponent props form a discriminated union of the map components props. The example Claude gave you is a big more dynamic using a mapped type but that’s not strictly necessary. You can create the discriminated union by hand if you want it to be more explicit.", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreigufaf2rjavqglwg7xlrmqiq77eom5kuuywjs2oy3tsodkflbskxu", "uri": "at://did:plc:zivbusxwcsom5o6mf7kljzms/app.bsky.feed.post/3likixzrilk27" }, "parent": { "cid": "bafyreigufaf2rjavqglwg7xlrmqiq77eom5kuuywjs2oy3tsodkflbskxu", "uri": "at://did:plc:zivbusxwcsom5o6mf7kljzms/app.bsky.feed.post/3likixzrilk27" } }, "createdAt": "2025-02-20T05:03:55.054Z" } }