v3/src/components/editor/link_icon.tsx

17 lines
453 B
TypeScript

import { mdiOpenInNew } from "@mdi/js";
import Icon from "@mdi/react";
import { cn } from "~/lib/utils";
export function LinkIcon(props: { url: string }) {
return (
<a className={cn(
"link-icon",
"inline-flex align-text-bottom items-center justify-center ml-0.5",
)}
href={props.url}
target="_blank"
>
<Icon path={mdiOpenInNew} size={.75} />
</a>
);
}