UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

13 lines (12 loc) 507 B
import { jsx as _jsx } from "react/jsx-runtime"; import { useEditLink } from "./useEditLink.js"; import classes from '@alauda/doom/styles/edit-link.module.scss'; export function EditLink() { const editLinkObj = useEditLink(); if (!editLinkObj) { return null; } const { text, link } = editLinkObj; // EditLink must be an external site, so we use <a> directly instead of Link return (_jsx("a", { href: link, target: "_blank", className: classes.editLink, children: text })); }