Files
outline/shared/editor/embeds/Tldraw.tsx
2023-11-28 05:22:42 -08:00

22 lines
414 B
TypeScript

import * as React from "react";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
function Tldraw(props: Props) {
return (
<Frame
{...props}
src={props.attrs.href}
title="Tldraw Embed"
referrerPolicy="origin"
border
/>
);
}
Tldraw.ENABLED = [
new RegExp("^https?://(beta|www|old)\\.tldraw\\.com/[rsv]/(.*)"),
];
export default Tldraw;