import { IconEdit, Link, SvgWrapper } from '@rspress/core/theme'; import './index.scss'; import { useEditLink } from './useEditLink'; export function EditLink({ isOutline }: { isOutline?: boolean }) { const editLinkObj = useEditLink(); if (!editLinkObj) { return null; } const { text, link } = editLinkObj; if (isOutline) { return ( {text} ); } return ( {text} ); }