import { UserProgressDto } from '@/shared/types/userProgress';

export function toProgressItemIds(progress: readonly UserProgressDto[]): ReadonlySet<string> {
  return new Set(progress.map((item) => item.item_id));
}

export const toLearnedSignIds = toProgressItemIds;
