24 lines
423 B
TypeScript
24 lines
423 B
TypeScript
import Link from 'next/link';
|
|
import { FaRegEdit } from 'react-icons/fa';
|
|
|
|
export default function EditButton ({
|
|
href,
|
|
label = 'Edit',
|
|
}: {
|
|
href: string,
|
|
label?: string,
|
|
}) {
|
|
return (
|
|
<Link
|
|
title={label}
|
|
href={href}
|
|
className="button"
|
|
>
|
|
<FaRegEdit className="translate-y-[-0.5px]" />
|
|
<span className="hidden sm:inline-block">
|
|
{label}
|
|
</span>
|
|
</Link>
|
|
);
|
|
}
|