21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
import type { TeamToolValue } from "@/lib/guides/team-tools";
|
|
|
|
export function toTeamDraft(
|
|
team: Omit<TeamToolValue, "clientId">,
|
|
): Omit<TeamToolValue, "clientId"> {
|
|
return {
|
|
title: team.title,
|
|
rotationSeconds: team.rotationSeconds,
|
|
combo: team.combo,
|
|
members: team.members.map((member) => ({
|
|
characterKey: member.characterKey,
|
|
weaponKey: member.weaponKey,
|
|
artifactKey: member.artifactKey,
|
|
secondArtifactKey: member.secondArtifactKey,
|
|
constellation: member.constellation,
|
|
refinement: member.refinement,
|
|
damage: member.damage,
|
|
})),
|
|
};
|
|
}
|