| 1 | import { ArrowRightIcon } from '@heroicons/react/outline'; |
| 2 | |
| 3 | export const ExternalLink = ({ |
| 4 | children, |
| 5 | href, |
| 6 | }: { |
| 7 | children: React.ReactNode; |
| 8 | href: string; |
| 9 | }) => { |
| 10 | return ( |
| 11 | <a |
| 12 | href={href} |
| 13 | className="inline-flex gap-x-2 rounded-lg bg-gray-700 px-3 py-1 text-sm font-medium text-gray-100 no-underline hover:bg-gray-500 hover:text-white" |
| 14 | > |
| 15 | <div>{children}</div> |
| 16 | |
| 17 | <ArrowRightIcon className="block w-4" /> |
| 18 | </a> |
| 19 | ); |
| 20 | }; |