mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 07:26:59 +01:00
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import classnames from 'classnames';
|
|
import type { ButtonProps } from './Button';
|
|
import { Button } from './Button';
|
|
|
|
type Props = ButtonProps & {
|
|
to: string;
|
|
};
|
|
|
|
export function ButtonLink({ to, className, ...buttonProps }: Props) {
|
|
return (
|
|
<Button to={to} className={classnames(className, 'w-full')} tabIndex={-1} {...buttonProps} />
|
|
);
|
|
}
|