first commit

This commit is contained in:
Matt Kane
2026-04-01 10:44:22 +01:00
commit 43fcb9a131
1789 changed files with 395041 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
/**
* Mastodon post embed component for Portable Text
*
* Wraps astro-embed's MastodonPost component, extracting props from the PT block node.
* astro-portabletext passes `node` (not `value`) for custom type components.
*/
import { MastodonPost } from "astro-embed";
import type { MastodonBlock } from "../schemas.js";
interface Props {
node: MastodonBlock;
}
const { node } = Astro.props;
const { id } = node;
---
<MastodonPost id={id} />