/** * Component: Backend Selection Step * Documentation: documentation/features/audiobookshelf-integration.md */ 'use client'; import { Button } from '@/components/ui/Button'; import { AudibleRegion, AUDIBLE_REGIONS } from '@/lib/types/audible'; interface BackendSelectionStepProps { value: 'plex' | 'audiobookshelf'; onChange: (value: 'plex' | 'audiobookshelf') => void; audibleRegion: AudibleRegion; onAudibleRegionChange: (region: AudibleRegion) => void; onNext: () => void; onBack: () => void; } export function BackendSelectionStep({ value, onChange, audibleRegion, onAudibleRegionChange, onNext, onBack, }: BackendSelectionStepProps) { return (

Choose Your Library Backend

Select which media server you'll use to manage your audiobook library.

{/* Audible Region Selection */}
{AUDIBLE_REGIONS[audibleRegion]?.isEnglish === false && (

Non-English Region

Many features such as search, discovery, and metadata matching are not yet fully supported for non-English regions. You may still proceed, but expect limited functionality.

)}

Select the Audible region that matches your metadata engine (Audnexus/Audible Agent) configuration in {value === 'plex' ? 'Plex' : 'Audiobookshelf'}. This ensures accurate book matching and metadata.

Important Note

This choice cannot be changed after setup. To switch backends, you'll need to reset the application.

); }