'use client' import { Box, Button, Typography, Divider } from '@mui/material' import { BibleVerse, HighlightColor } from '@/types' import { SyncStatusIndicator } from './sync-status-indicator' const HIGHLIGHT_COLORS: HighlightColor[] = ['yellow', 'orange', 'pink', 'blue'] const COLOR_MAP: Record = { yellow: { bg: 'rgba(255, 193, 7, 0.3)', hex: '#FFC107' }, orange: { bg: 'rgba(255, 152, 0, 0.3)', hex: '#FF9800' }, pink: { bg: 'rgba(233, 30, 99, 0.3)', hex: '#E91E63' }, blue: { bg: 'rgba(33, 150, 243, 0.3)', hex: '#2196F3' } } interface HighlightsTabProps { verse: BibleVerse | null isHighlighted: boolean currentColor: HighlightColor | null onToggleHighlight: () => void onColorChange: (color: HighlightColor) => void syncStatus?: 'synced' | 'syncing' | 'pending' | 'error' syncErrorMessage?: string } export function HighlightsTab({ verse, isHighlighted, currentColor, onToggleHighlight, onColorChange, syncStatus, syncErrorMessage }: HighlightsTabProps) { if (!verse) return null return ( {!isHighlighted ? ( ) : ( <> Highlight Color {HIGHLIGHT_COLORS.map((color) => ( ))} {syncStatus && ( Sync Status )} You can highlight the same verse multiple times with different colors. )} ) }