website/src/components/navbar/button.jsx

14 lines
428 B
React
Raw Normal View History

2022-08-26 13:46:21 +00:00
import React from "react"
2022-08-27 08:45:32 +00:00
import { Link } from "gatsby"
2022-08-26 13:46:21 +00:00
const Button = ({url, children, name}) => (
<span className="tooltip tooltip-bottom before:text-xs before:content-[attr(data-tip)]" data-tip={name}>
<div className="flex-none items-center">
2022-08-27 08:45:32 +00:00
<Link className="btn btn-ghost drawer-button btn-square text-xl" to={url || "#!"}>
2022-08-26 13:46:21 +00:00
{children}
2022-08-27 08:45:32 +00:00
</Link>
2022-08-26 13:46:21 +00:00
</div>
</span>
)
export default Button