Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

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>
);
}