import PropTypes from 'prop-types' import { Result, Typography, Flex } from 'antd' import CopyButton from './CopyButton' import ODataIcon from '../../Icons/ODataIcon' import config from '../../../config' const { Text } = Typography const ODataURL = ({ objectType }) => { const baseUrl = config.backendUrl?.replace(/\/$/, '') || '' const odataUrl = `${baseUrl}/odata/${objectType}` return ( Use this URL to connect Power BI, Excel, or other OData clients. An app password is required and can be configured in your user settings. } icon={} > {odataUrl} ) } ODataURL.propTypes = { objectType: PropTypes.string.isRequired } export default ODataURL