UNPKG

@inspirer-dev/hero-widget-cta-button

Version:

A custom field plugin for Strapi v5 that provides a CTA button selector with different action types (external link, internal link, case, article, copy link, copy nickname).

30 lines (29 loc) 750 B
// Utility functions for hero-widget-cta-button plugin export const formatActionType = (type: string) => { switch (type) { case 'external_link': return 'External Link'; case 'internal_link': return 'Internal Link'; case 'case': return 'Case'; case 'article': return 'Article'; case 'copy_link': return 'Copy Link'; case 'copy_nickname': return 'Copy Nickname'; case 'copy_ref_link': return 'Copy Ref Link'; case 'cases_anchor': return 'Cases Anchor'; case 'open_claimr_quest': return 'Open Claimr Quest'; case 'promocode': return 'Promocode'; case 'open_deposit_modal': return 'Open Deposit Modal'; default: return type; } };