Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

634 B
Raw Blame
// Fixture: a field of SWR data iterated after guarding only the payload root.
import { memo } from 'react';

import { useClientDataSWR } from '@/libs/swr';
import { verifyService } from '@/services/verify';

const RoundList = memo<{ acceptanceId: string }>(({ acceptanceId }) => {
  const { data } = useClientDataSWR(['acceptance-bundle', acceptanceId], () =>
    verifyService.getAcceptanceBundle(acceptanceId),
  );

  if (!data) return null;

  return (
    <ul>
      {/* alint-expect */}
      {data.rounds.map((round) => (
        <li key={round.id}>{round.summary}</li>
      ))}
    </ul>
  );
});

export default RoundList;