import ReactDOM from 'react-dom' import { CalendarDays, Pencil, Trash2, ChevronDown, Check, Eye } from 'lucide-react' import type { SidebarState } from './usePlacesSidebar' export function MobileDayPickerSheet(S: SidebarState) { const { dayPickerPlace, setDayPickerPlace, setMobileShowDays, onPlaceClick, canEditPlaces, onEditPlace, t, days, mobileShowDays, onAssignToDay, assignments, onDeletePlace, } = S return ReactDOM.createPortal(
{ setDayPickerPlace(null); setMobileShowDays(false) }} style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.4)', zIndex: 99999, display: 'flex', alignItems: 'flex-end', justifyContent: 'center' }} >
e.stopPropagation()} className="bg-surface-card" style={{ borderRadius: '20px 20px 0 0', width: '100%', maxWidth: 500, maxHeight: '70vh', display: 'flex', flexDirection: 'column', overflow: 'hidden', paddingBottom: 'var(--bottom-nav-h)' }} >
{dayPickerPlace.name}
{dayPickerPlace.address &&
{dayPickerPlace.address}
}
{/* View details */} {/* Edit */} {canEditPlaces && ( )} {/* Assign to day */} {days?.length > 0 && ( <> {mobileShowDays && (
{days.map((day, i) => ( ))}
)} )} {/* Delete */} {canEditPlaces && ( )}
, document.body ) }