github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs-website/src/theme/EditThisPage/index.js (about) 1 import React from "react"; 2 import Translate from "@docusaurus/Translate"; 3 import { ThemeClassNames } from "@docusaurus/theme-common"; 4 import GithubIcon from "../../../static/img/GithubIcon.svg"; 5 import ArrowForwardFilled from "../../css/images/svg/ArrowForwardFilled.svg"; 6 export default function EditThisPage({ editUrl }) { 7 return ( 8 <a 9 href={editUrl} 10 target="_blank" 11 rel="noreferrer noopener" 12 className={`${ThemeClassNames.common.editThisPage} svg-link`} 13 > 14 <GithubIcon /> 15 <Translate 16 id="theme.common.editThisPage" 17 description="The link label to edit the current page" 18 > 19 Edit this page 20 </Translate> 21 <ArrowForwardFilled /> 22 </a> 23 ); 24 }