ant-design/.dumi/theme/common/Link.tsx

17 lines
474 B
TypeScript
Raw Normal View History

import type { MouseEventHandler } from 'react';
import React from 'react';
import { Link as DumiLink } from 'dumi';
2023-09-17 23:32:14 +08:00
export interface LinkProps {
to: string | { pathname?: string; search?: string; hash?: string };
style?: React.CSSProperties;
2023-04-18 15:29:34 +08:00
className?: string;
onClick?: MouseEventHandler;
component?: React.ComponentType<any>;
children?: React.ReactNode;
2023-09-17 23:32:14 +08:00
}
const Link: React.FC<LinkProps> = (props) => <DumiLink {...props} prefetch />;
export default Link;