File size: 412 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { createLink } from '@tanstack/react-router';
import { Button } from '@wordpress/components';
import { ButtonProps } from '@wordpress/components/build-types/button/types';
import { forwardRef } from 'react';

function RouterLinkButton( props: ButtonProps, ref: React.Ref< HTMLAnchorElement > ) {
	return <Button ref={ ref } { ...props } />;
}

export default createLink( forwardRef( RouterLinkButton ) );