2023-05-16 12:03:54 +03:00

19 lines
385 B
TypeScript

import type { ButtonProps } from 'antd';
import { Button as AntButton } from 'antd';
export default function Link({ href, ...props }: ButtonProps) {
return (
<AntButton
rel="noopener"
target="_blank"
type="link"
onClick={() => {
window.open(href, '_blank')?.focus();
}}
{...props}
>
{props.children}
</AntButton>
);
}