import { Search } from 'lucide-react' import { Input } from '../../../components/ui' import { MEMBER_SEARCH_MIN } from './constants' import { useGroupDetail } from './GroupDetailProvider' import { MembersView } from './MembersView' import { PendingView } from './PendingView' import { SectionChips } from './SectionChips' export function MembersWaitlistSection() { const { listSection, searchFilter, setSearchFilter, attendeesTotal } = useGroupDetail() // With few attendees the search is noise: scrolling the list is enough. It is // removed from the tree instead of hidden, so as not to leave a gap in the // row. In Pendientes nothing changes: there the volume is what it is. const showSearch = listSection === 'pending' || attendeesTotal > MEMBER_SEARCH_MIN return ( // A single surface: the list sits directly on the wash, like the info card // above, instead of nesting inside a lighter box. The separation between // controls and data comes from the row dividers themselves, the input's own // tone and the chips' border; an intermediate box only added a level of // containment and horizontal padding.
Pre-inscripciones que esperan tu aprobación y personas en lista de espera por un cupo libre.
) : null} {/* The clipping the panel used to do lives here now. It can't stay on the panel: an ancestor with `overflow` is a scroll container, and a sticky element resolves against that scrollport — never moving at all. Here it is harmless because the controls are siblings above it, not inside it. It squares off the last row's bottom border and the empty states. */}