Files
outline/shared/editor/components/DisabledEmbed.tsx
Tom Moor aab3a49f2c chore: Bump outline-icons (#5170
* Bump outline-icons to default use currentColor

* wip
2023-04-08 08:16:05 -07:00

21 lines
592 B
TypeScript

import { OpenIcon } from "outline-icons";
import * as React from "react";
import { DefaultTheme, ThemeProps } from "styled-components";
import { EmbedProps as Props } from "../embeds";
import Widget from "./Widget";
export default function DisabledEmbed(props: Props & ThemeProps<DefaultTheme>) {
return (
<Widget
title={props.embed.title}
href={props.attrs.href}
icon={props.embed.icon}
context={props.attrs.href.replace(/^https?:\/\//, "")}
isSelected={props.isSelected}
theme={props.theme}
>
<OpenIcon size={20} />
</Widget>
);
}