Files
yaak/src-web/components/ButtonLink.tsx
2023-02-28 22:54:54 -08:00

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} />;
}