0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-06-09 15:26:01 +09:00
yude.jp/pages/components/Profile/Button.js

23 lines
725 B
JavaScript
Raw Normal View History

// Next.js
import Link from 'next/link'
// Font Awesome
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const Button = (props) => {
const { icon, dest, caption } = props
return (
2021-12-11 19:03:47 +09:00
<Link href={{ pathname: dest }}>
<a>
<button
2022-01-02 18:18:25 +09:00
className="bg-pink-600 text-white active:bg-pink-600 mt-3 font-bold text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150"
type="button"
>
<FontAwesomeIcon icon={icon} className="w-5 h-5 inline"/> {caption}
</button>
</a>
</Link>
)
}
export default Button