2021-08-09 10:52:02 +09:00
|
|
|
// Next.js
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
2021-08-09 11:33:00 +09:00
|
|
|
// Font Awesome
|
2021-08-09 10:52:02 +09:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
|
|
|
|
const FontAwesomeMenu = (props) => {
|
2021-12-11 18:55:57 +09:00
|
|
|
const { icon, dest, query } = props
|
2021-08-09 10:52:02 +09:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
2021-12-11 18:55:57 +09:00
|
|
|
<Link href={{ pathname: dest, query: query }}>
|
2021-08-09 10:52:02 +09:00
|
|
|
<a>
|
2021-12-11 21:40:26 +09:00
|
|
|
<FontAwesomeIcon icon={icon} className="text-4xl fill-current inline transition duration-200 ease-in-out transform hover:-translate-y-1 hover:scale-110" />
|
2021-08-09 10:52:02 +09:00
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FontAwesomeMenu
|