import * as React from "react"; import useComponentSize from "~/hooks/useComponentSize"; import Frame from "../components/Frame"; import { EmbedProps as Props } from "."; const URL_REGEX = /^https:\/\/(www\.)?berrycast.com\/conversations\/(.*)$/; export default function Berrycast(props: Props) { const normalizedUrl = props.attrs.href.replace(/\/$/, ""); const ref = React.useRef(null); const { width } = useComponentSize(ref); return ( <>
); } Berrycast.ENABLED = [URL_REGEX];