mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
22 lines
495 B
TypeScript
22 lines
495 B
TypeScript
import { OpenIcon } from "outline-icons";
|
|
import type { EmbedProps as Props } from "../embeds";
|
|
import Widget from "./Widget";
|
|
|
|
export default function DisabledEmbed(
|
|
props: Omit<Props, "matches" | "attrs"> & {
|
|
href: string;
|
|
}
|
|
) {
|
|
return (
|
|
<Widget
|
|
title={props.embed.title}
|
|
href={props.href}
|
|
icon={props.embed.icon}
|
|
context={props.href.replace(/^https?:\/\//, "")}
|
|
isSelected={props.isSelected}
|
|
>
|
|
<OpenIcon size={20} />
|
|
</Widget>
|
|
);
|
|
}
|