subscriptionShared.tsx 257 B

123456
  1. import { Tag } from 'antd';
  2. export const isRemoteRoutingSource = (value: string) => /^https:\/\/\S+$/i.test(value.trim());
  3. export const remoteSourceBadge = (value: string) =>
  4. isRemoteRoutingSource(value) ? <Tag color="blue">HTTPS URL</Tag> : undefined;