Files
outline/shared/editor/embeds/GoogleMaps.tsx
Jack Woodgate 6828718cf0 feat: Add Google Maps Embed (#5667) (#5673)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2023-08-12 02:45:21 -07:00

17 lines
402 B
TypeScript

import * as React from "react";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
function GoogleMaps(props: Props) {
const { matches } = props.attrs;
const source = matches[0];
return <Frame {...props} src={source} title="Google Maps" />;
}
GoogleMaps.ENABLED = [
new RegExp("^https?://www\\.google\\.com/maps/embed\\?(.*)$"),
];
export default GoogleMaps;