import { Box, Text } from "ink"; import { Popup } from "../ui/Popup.js"; import { useFreeSize } from "../../hooks/size.js"; import { useDataResidentsByAbodeId } from "../../../react/hooks/data/residents.js"; import { AbodeName } from "../ui/AbodeName.js"; import { SearchPanel } from "../ui/SearchPanel.js"; import type { Resident } from "../../../db/types/Resident.js"; import { UserName } from "../ui/UserName.js"; import { ButtonList } from "../ui/Button.js"; function AbodeResidentComponent({ item, selected, }: { item: Resident; selected: boolean; }) { return ( {selected && ( {}, }, { children: "Delete", onClick: () => {}, }, { children: "Delete", onClick: () => {}, }, ]} /> )} ); } export function AbodeResidentsPopup({ aid, onClose, }: { aid: string; onClose: () => void; }) { const { width, height } = useFreeSize(); const { residents, status, refresh } = useDataResidentsByAbodeId(aid); return ( Residents of{" "} ); }