web/src/pages/Home/TopJurors/JurorCard/index.tsx
import React from "react";
import DesktopCard from "./DesktopCard";
import MobileCard from "./MobileCard";
interface IJurorCard {
rank: number;
address: `0x${string}`;
coherenceScore: number;
totalCoherentVotes: number;
totalResolvedVotes: number;
totalResolvedDisputes: number;
}
const JurorCard: React.FC<IJurorCard> = ({
rank,
address,
coherenceScore,
totalCoherentVotes,
totalResolvedVotes,
totalResolvedDisputes,
}) => {
const allProps = { rank, address, coherenceScore, totalCoherentVotes, totalResolvedVotes, totalResolvedDisputes };
return (
<>
<MobileCard {...allProps} />
<DesktopCard {...allProps} />
</>
);
};
export default JurorCard;