/** * Provider Banner Component * * Displays informational banner for bookings managed by external providers. * Used to communicate read-only state for FairPlay clubs. */ import { Info } from 'lucide-react'; import type { ProviderInfo } from '@/src/types/bookings'; interface ProviderBannerProps { provider: ProviderInfo; className?: string; } export default function ProviderBanner({ provider, className = '' }: ProviderBannerProps) { // Only show banner for non-local providers if (provider.type === 'local') { return null; } const providerName = provider.type === 'fairplay' ? 'FairPlay' : 'an external provider'; return (

This club is managed by {providerName}

Admin edits are disabled here. Changes must be made in the provider's system.

); }