'use client';
import ParticipantsList from '@/components/vote/ParticipantsList';
import VoteProvider from '@/providers/VoteProvider';
import { use } from 'react';

interface IParams {
  params: Promise<{
    vote_id: string;
  }>;
}

const page = ({ params }: IParams) => {
  const { vote_id } = use(params);

  return (
    <main className="pt-[60px] pb-[120px]">
      <div className="container">
        <VoteProvider>
          <div className="flex flex-col items-center w-full">
            <ParticipantsList vote_id={vote_id} />
          </div>
        </VoteProvider>
      </div>
    </main>
  );
};

export default page;
