mirror of
https://github.com/outline/outline.git
synced 2026-01-05 18:49:53 -06:00
20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
import * as React from "react";
|
|
import Frame from "../components/Frame";
|
|
import { EmbedProps as Props } from ".";
|
|
|
|
export default function Scribe(props: Props) {
|
|
const { matches } = props.attrs;
|
|
const shareId = matches[1];
|
|
|
|
return (
|
|
<Frame
|
|
{...props}
|
|
src={`https://scribehow.com/embed/${shareId}`}
|
|
title="Scribe"
|
|
border
|
|
/>
|
|
);
|
|
}
|
|
|
|
Scribe.ENABLED = [/^https?:\/\/scribehow\.com\/shared\/(.*)$/];
|