mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
15 lines
369 B
JavaScript
15 lines
369 B
JavaScript
import Link from 'next/link';
|
|
import { Icon, Icons, Text } from 'react-basics';
|
|
import styles from './LinkButton.module.css';
|
|
|
|
export function LinkButton({ href, icon, children }) {
|
|
return (
|
|
<Link className={styles.button} href={href}>
|
|
<Icon>{icon || <Icons.ArrowRight />}</Icon>
|
|
<Text>{children}</Text>
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
export default LinkButton;
|