Files
moreminimore-redesign/packages/plugins/embeds/src/astro/Tweet.astro
2026-04-01 10:44:22 +01:00

20 lines
458 B
Plaintext

---
/**
* Tweet embed component for Portable Text
*
* Wraps astro-embed's Tweet component, extracting props from the PT block node.
* astro-portabletext passes `node` (not `value`) for custom type components.
*/
import { Tweet as AstroTweet } from "astro-embed";
import type { TweetBlock } from "../schemas.js";
interface Props {
node: TweetBlock;
}
const { node } = Astro.props;
const { id, theme } = node;
---
<AstroTweet id={id} theme={theme} />