mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 18:31:16 +01:00
Add toggle for pretty view
This commit is contained in:
9
src-web/components/ButtonLink.tsx
Normal file
9
src-web/components/ButtonLink.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
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} />;
|
||||
}
|
||||
Reference in New Issue
Block a user