This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-15 22:06:29 +00:00
|
|
|
// @flow
|
|
|
|
import * as React from 'react';
|
|
|
|
import Frame from './components/Frame';
|
|
|
|
|
|
|
|
const URL_REGEX = new RegExp('^https://framer.cloud/(.*)$');
|
|
|
|
|
2020-05-20 03:39:34 +00:00
|
|
|
type Props = {|
|
|
|
|
attrs: {|
|
|
|
|
href: string,
|
|
|
|
matches: string[],
|
|
|
|
|},
|
|
|
|
|};
|
2018-12-15 22:06:29 +00:00
|
|
|
|
|
|
|
export default class Framer extends React.Component<Props> {
|
|
|
|
static ENABLED = [URL_REGEX];
|
|
|
|
|
|
|
|
render() {
|
2020-05-20 03:39:34 +00:00
|
|
|
return <Frame src={this.props.attrs.href} title="Framer Embed" border />;
|
2018-12-15 22:06:29 +00:00
|
|
|
}
|
|
|
|
}
|