Emails
3 months ago
EngagementChart
3 months ago
MediaHub
3 months ago
Onboarding
3 months ago
Popup
3 months ago
Skeletons
2 months ago
WhatsNew
3 months ago
charts
3 months ago
test
3 months ago
AdminMenuSync.js
3 months ago
ChartEmptyState.js
3 months ago
ChooseDate.js
3 months ago
ColorPicker.js
3 months ago
DashboardPromos.js
2 days ago
ExtendPlugins.js
3 months ago
Filters.js
3 months ago
Link.js
3 months ago
McpPromoBanner.js
2 days ago
Navbar.js
2 months ago
NoFound.js
3 months ago
PageHeader.js
3 months ago
PluginRecommendations.js
3 months ago
PostScheduleField.js
3 months ago
PrestoPlayerIcon.js
3 months ago
ProGateOverlay.js
3 months ago
PromoBanner.js
2 days ago
QuickAccess.js
2 weeks ago
RankedTable.js
3 months ago
SkinPromoBanner.js
2 days ago
StatCard.js
3 months ago
TopMedia.js
3 months ago
TopPerformingMedia.js
3 months ago
TopUsers.js
3 months ago
TruncatedTitle.js
3 months ago
UpgradeNotice.js
3 months ago
UpgradeToPro.js
2 weeks ago
VideoModal.js
3 months ago
WelcomeBanner.js
3 months ago
SkinPromoBanner.js
28 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { Palette } from 'lucide-react'; |
| 3 | import PromoBanner from './PromoBanner'; |
| 4 | |
| 5 | export const SKIN_PROMO_KEY = 'prestoPlayerSkinPromoDismissed'; |
| 6 | |
| 7 | /** |
| 8 | * Promo for the Floating Pill player skin. Announcement only — no CTA, so it |
| 9 | * never pulls anyone off the dashboard. Placement and gating live in |
| 10 | * DashboardPromos. |
| 11 | * |
| 12 | * @param {Object} props |
| 13 | * @param {Function} props.onDismiss Called after the dismissal is stored. |
| 14 | */ |
| 15 | const SkinPromoBanner = ( { onDismiss } ) => ( |
| 16 | <PromoBanner |
| 17 | storageKey={ SKIN_PROMO_KEY } |
| 18 | onDismiss={ onDismiss } |
| 19 | tag |
| 20 | icon={ |
| 21 | <Palette className="size-5 text-brand-primary-600" aria-hidden="true" /> |
| 22 | } |
| 23 | title={ __( 'Floating Pill', 'presto-player' ) } |
| 24 | /> |
| 25 | ); |
| 26 | |
| 27 | export default SkinPromoBanner; |
| 28 |