import React from 'react'; import type { SidChain } from '../../../src/types'; export interface SidChainTrackerProps { sidChain: SidChain; } const sidFields = [ { key: 'customerProfileSid', label: 'Customer Profile', icon: '👤' }, { key: 'businessEndUserSid', label: 'Business End User', icon: '🏢' }, { key: 'authorizedRepEndUserSid', label: 'Authorized Rep', icon: '👔' }, { key: 'addressSid', label: 'Address', icon: '📍' }, { key: 'supportingDocSid', label: 'Supporting Doc', icon: '📄' }, { key: 'trustProductSid', label: 'Trust Product', icon: '🛡️' }, { key: 'a2pProfileEndUserSid', label: 'A2P Profile', icon: '📱' }, { key: 'brandRegistrationSid', label: 'Brand Registration', icon: '🏷️' }, { key: 'messagingServiceSid', label: 'Messaging Service', icon: '💬' }, { key: 'campaignSid', label: 'Campaign', icon: '📢' } ]; export const SidChainTracker: React.FC = ({ sidChain }) => { return (
{sidFields.map((field) => { const value = sidChain[field.key as keyof SidChain]; const hasValue = !!value; return (
{field.icon}

{field.label}

{hasValue ? ( {value} ) : (

Not created yet

)}
{hasValue ? ( ) : ( )}
); })}
); };