mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-17 06:26:58 +01:00
10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import type { LinkProps } from 'react-router-dom';
|
|
import { Link } from 'react-router-dom';
|
|
import { Button, ButtonProps } from './Button';
|
|
|
|
type Props = ButtonProps<typeof Link> & LinkProps;
|
|
|
|
export function ButtonLink({ ...props }: Props) {
|
|
return <Button as={Link} {...props} />;
|
|
}
|