import React from "react"; import Link from "@mui/material/Link"; import Typography from "@mui/material/Typography"; import type { UrlFieldProps } from "../types"; /** * This field lets you embed a link.It uses the {@link https://mui.com/material-ui/react-typography/#main-content `` } * and {@link https://mui.com/material-ui/react-link/#main-content ``} components from Material UI. * 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-reference/mui/components/fields/url} for more details. */ export const UrlField: React.FC = ({ children, value, ...rest }) => { return ( {children ?? value} ); };