hashan-7's picture
feat: add admin dashboard and portfolio management UI
08d910b
Raw
History Blame Contribute Delete
401 Bytes
import type { ReactNode } from 'react';
interface LinkButtonProps {
href?: string;
children: ReactNode;
className?: string;
}
function LinkButton({ href, children, className = 'card-link' }: LinkButtonProps) {
if (!href) {
return null;
}
return (
<a className={className} href={href} target="_blank" rel="noreferrer">
{children}
</a>
);
}
export default LinkButton;