Footer.js 416 Bytes
Newer Older
1
import EditBtn from "./Buttons/EditBtn.js";
Kim, Subin's avatar
Kim, Subin committed
2
import AddBtn from "./Buttons/AddBtn.js";
3

Kim, Subin's avatar
Kim, Subin committed
4
const Footer = ({ pathname="todo" }) => {
5
6
    return (
        <div className="position-absolute bottom-0 start-0 justify-content-end d-flex justify-content-end w-100 bg-white" style={{ zIndex: "50" }}>
Kim, Subin's avatar
Kim, Subin committed
7
            {pathname === "todo" ? <AddBtn /> : <EditBtn pathname={pathname} />}
8
9
10
11
12
        </div>
    )
}

export default Footer