{CTA_LABELS[ad.call_to_action] || ad.call_to_action || 'No call to action returned'}
+ {list.data?.can_manage && (
+
+
+
+
+ )}
+ {list.data?.can_manage &&
{ad.editable ? 'Name, text, link, and call to action can be replaced for this Page link ad. The image shown is the one Meta already stored; this screen does not upload new media.' : 'Urmi can change status for this ad. Its creative is not a Page link ad, so text and call to action stay read-only.'}
+
+ {error.code === 'not_configured' && 'Meta Login is not configured'}
+ {error.code === 'not_connected' && 'Meta is not connected'}
+ {expired && 'Meta access has expired'}
+ {denied && 'This connection does not include that permission'}
+ {needsAccount && 'Choose an asset first'}
+ {error.code === 'feature_unavailable' && 'This Meta feature is not available'}
+ {!['not_configured', 'not_connected', 'token_expired', 'permission_denied', 'no_ad_account', 'no_page', 'feature_unavailable'].includes(error.code) && 'Meta could not complete this request'}
+
+
{error.message}
+ {disconnected && Open connections}
+ {expired && Reconnect Meta}
+ {needsAccount && Choose an asset}
+
+ )
+}
+
+export function MetaLoading() {
+ return