mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
13 lines
402 B
TypeScript
13 lines
402 B
TypeScript
|
import React from 'react';
|
||
|
import { Button } from 'antd';
|
||
|
import type { ButtonProps } from 'antd';
|
||
|
import Link from './Link';
|
||
|
import type { LinkProps } from './Link';
|
||
|
|
||
|
type LinkButtonProps = LinkProps &
|
||
|
Readonly<React.PropsWithChildren<Pick<ButtonProps, 'type' | 'size'>>>;
|
||
|
|
||
|
const LinkButton: React.FC<LinkButtonProps> = (props) => <Link component={Button} {...props} />;
|
||
|
|
||
|
export default LinkButton;
|