import { Option, Participant, Vote } from "@prisma/client"; export const generateFakeParticipants = (names: string[], dates: string[]) => { const pollId = "mock"; const options: Option[] = dates.map((date) => { return { id: date, value: date, pollId, }; }); const participants: Array = names.map( (name, i) => { return { name, id: `participant${i}`, pollId, userId: null, createdAt: new Date(), votes: [], }; }, ); const mockVotes: number[][] = [ [1, 1, 1, 0], [1, 0, 1, 1], [1, 1, 1, 1], [0, 0, 1, 0], ]; const optionsWithVotes: Array