// @flow import * as React from "react"; import Frame from "./components/Frame"; import Image from "./components/Image"; const URL_REGEX = new RegExp("^https?://docs.google.com/document/(.*)$"); type Props = {| attrs: {| href: string, matches: string[], |}, |}; export default class GoogleDocs extends React.Component { static ENABLED = [URL_REGEX]; render() { return ( } canonicalUrl={this.props.attrs.href} title="Google Docs" border /> ); } }