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