import type { LegacyLifeSession } from "../../hooks/legacySessionTypes";

export type LegacySidebarModel = Pick<
  LegacyLifeSession,
  "activities" | "currentRecord" | "selectedTalents" | "totals"
>;

export function createLegacySidebarModel(
  session: LegacyLifeSession,
): LegacySidebarModel {
  return {
    activities: session.activities,
    currentRecord: session.currentRecord,
    selectedTalents: session.selectedTalents,
    totals: session.totals,
  };
}
