EditBtn.js 383 Bytes
Newer Older
1
2
3
4
5
import { Link } from "react-router-dom";
import styles from "./buttons.module.scss";

const EditBtn = ({ pathname }) => {
    return (
6
        <Link className={`me-2 mb-1 ${styles.editBtn}`} to={{
7
8
9
            pathname: "/" + pathname,
            state: {}
        }}>
10
11
12
13
14
15
            <i className={`bi bi-plus-circle ${styles.icon}`}></i>
        </Link>
    )
}

export default EditBtn