mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 21:53:36 +01:00
11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import type { LinkProps } from 'react-router-dom';
|
|
import { Link } from 'react-router-dom';
|
|
import type { ButtonProps } from './Button';
|
|
import { Button } from './Button';
|
|
|
|
type Props = ButtonProps<typeof Link> & LinkProps;
|
|
|
|
export function ButtonLink({ ...props }: Props) {
|
|
return <Button as={Link} {...props} />;
|
|
}
|