Files
outline/shared/editor/embeds/Tldraw.tsx
Limezy 3b62c76207 Add tldraw embed (#3439)
* Test Tldraw embed

* Correct regex

* Correct alt for image

* Resize image to 120x120
2022-04-23 10:10:33 -07:00

20 lines
394 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.com Embed"
referrerPolicy="origin"
border
/>
);
}
Tldraw.ENABLED = [new RegExp("https?://www.tldraw.com/r/(.*)$")];
export default Tldraw;