|
|
@@ -26,3 +26,21 @@ Alert.propTypes = {
|
|
|
Alert.defaultProps = {
|
|
|
kind: 'info',
|
|
|
}
|
|
|
+
|
|
|
+export function EditButton(props) {
|
|
|
+ let encodedStatus = encodeURIComponent(
|
|
|
+ "This live editor looks pretty darn handy #JavaScript"
|
|
|
+ )
|
|
|
+ let encodedURL = encodeURIComponent(
|
|
|
+ "https://ecs.chenxixian.cn/chenxixian/docz/src/master"
|
|
|
+ )
|
|
|
+
|
|
|
+ return (
|
|
|
+ <a
|
|
|
+ href={`https://ecs.chenxixian.cn/chenxixian/docz/_edit/master/ALert.mdx`}
|
|
|
+ target="_blank"
|
|
|
+ className="EditButton">
|
|
|
+ Edit This Page!
|
|
|
+ </a>
|
|
|
+ )
|
|
|
+}
|