import React from "react"; import { Typography } from "antd"; import { LinkProps } from "antd/lib/typography/Link"; import { FieldProps } from "../../../interfaces/field"; const { Link } = Typography; export type UrlFieldProps = FieldProps & LinkProps; /** * This field lets you embed a link. It uses Ant Design's {@link https://ant.design/components/typography/ ``} component. * You can pass a URL in its `value` property and you can show a text in its place by passing any `children`. * * @see {@link https://refine.dev/docs/api-references/components/fields/url} for more details. */ export const UrlField: React.FC = ({ children, value, ...rest }) => { return ( {children ?? value} ); };