2021-09-26 22:44:26 +00:00
|
|
|
import type { FunctionComponent, MouseEventHandler } from "react";
|
|
|
|
import { HiExternalLink } from "react-icons/hi";
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
|
|
text: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
const PaddleLink: FunctionComponent<Props> = ({ onClick, text }) => (
|
|
|
|
<button className="flex space-x-2 items-center text-left" onClick={onClick}>
|
|
|
|
<HiExternalLink className="w-6 h-6 flex-shrink-0" />
|
2021-10-17 22:06:45 +00:00
|
|
|
<span className="font-medium transition-colors duration-150 border-b border-transparent hover:border-primary-500">
|
2021-09-26 22:44:26 +00:00
|
|
|
{text}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default PaddleLink;
|