export const collectIds = (items: { id?: T }[]): T[] => { return items.map((item) => item.id); };