diff --git a/public/images/tldraw.png b/public/images/tldraw.png new file mode 100644 index 0000000000..90cd7b398e Binary files /dev/null and b/public/images/tldraw.png differ diff --git a/shared/editor/embeds/Tldraw.tsx b/shared/editor/embeds/Tldraw.tsx new file mode 100644 index 0000000000..f440aba12b --- /dev/null +++ b/shared/editor/embeds/Tldraw.tsx @@ -0,0 +1,19 @@ +import * as React from "react"; +import Frame from "../components/Frame"; +import { EmbedProps as Props } from "."; + +function Tldraw(props: Props) { + return ( + + ); +} + +Tldraw.ENABLED = [new RegExp("https?://www.tldraw.com/r/(.*)$")]; + +export default Tldraw; diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index 8c415f9706..d303c9d90f 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -35,6 +35,7 @@ import Otter from "./Otter"; import Pitch from "./Pitch"; import Prezi from "./Prezi"; import Spotify from "./Spotify"; +import Tldraw from "./Tldraw"; import Trello from "./Trello"; import Typeform from "./Typeform"; import Vimeo from "./Vimeo"; @@ -317,6 +318,13 @@ const embeds: EmbedDescriptor[] = [ component: Spotify, matcher: matcher(Spotify), }, + { + title: "Tldraw", + keywords: "draw schematics diagrams", + icon: () => Tldraw, + component: Tldraw, + matcher: matcher(Tldraw), + }, { title: "Trello", keywords: "kanban",