mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-12-15 05:53:52 +01:00
24 lines
731 B
JavaScript
24 lines
731 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import React from 'react';
|
|
import Translate from '@docusaurus/Translate';
|
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
import Link from '@docusaurus/Link';
|
|
import IconEdit from '@theme/Icon/Edit';
|
|
export default function EditThisPage({editUrl}) {
|
|
return (
|
|
<Link to={editUrl} className={ThemeClassNames.common.editThisPage}>
|
|
<IconEdit />
|
|
<Translate
|
|
id="theme.common.editThisPage"
|
|
description="The link label to edit the current page">
|
|
Edit this page
|
|
</Translate>
|
|
</Link>
|
|
);
|
|
}
|