Footer.js 410 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
import EditBtn from "./Buttons/EditBtn";
import AddBtn from "./Buttons/AddBtn";
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