mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 20:20:00 +08:00
15 lines
368 B
JavaScript
15 lines
368 B
JavaScript
import React from 'react';
|
|
import { Tooltip, Icon } from 'antd';
|
|
|
|
const branchUrl = 'https://github.com/ant-design/ant-design/blob/master/';
|
|
|
|
export default function EditButton({ title, filename }) {
|
|
return (
|
|
<Tooltip title={title}>
|
|
<a className="edit-button" href={`${branchUrl}${filename}`}>
|
|
<Icon type="edit" />
|
|
</a>
|
|
</Tooltip>
|
|
);
|
|
}
|