---
/**
 * GitHub Gist embed component for Portable Text
 *
 * Wraps astro-embed's Gist component, extracting props from the PT block node.
 * astro-portabletext passes `node` (not `value`) for custom type components.
 */
import { Gist as AstroGist } from "astro-embed";
import type { GistBlock } from "../schemas.js";

interface Props {
	node: GistBlock;
}

const { node } = Astro.props;
const { id, file } = node;
---

<AstroGist id={id} file={file} />
