mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Updated types.
This commit is contained in:
parent
bdf2fa4f05
commit
366ef35d3d
14 changed files with 136 additions and 59 deletions
|
|
@ -1,21 +0,0 @@
|
|||
import classNames from 'classnames';
|
||||
import Link from 'next/link';
|
||||
import { useLocale } from 'components/hooks';
|
||||
import styles from './LinkButton.module.css';
|
||||
|
||||
export function LinkButton({ href, className, variant, scroll = true, children }) {
|
||||
const { dir } = useLocale();
|
||||
|
||||
return (
|
||||
<Link
|
||||
className={classNames(styles.button, className, { [styles[variant]]: true })}
|
||||
href={href}
|
||||
dir={dir}
|
||||
scroll={scroll}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
export default LinkButton;
|
||||
Loading…
Add table
Add a link
Reference in a new issue