import * as React from "react"; import styled from "styled-components"; import { EmbedProps as Props } from "."; const Iframe = styled.iframe` margin-top: 8px; `; function Gist(props: Props) { const gistUrl = new URL(props.attrs.href); const id = gistUrl.pathname.split("/")[2]; const gistLink = `https://gist.github.com/${id}.js`; const gistScript = ``; const styles = ""; const iframeHtml = `${styles}${gistScript}`; return (