export type ItemId = (index: number, item: T) => string;