import { ProposalVoteOption } from '../proposal-module-adapter' export type ProposalVoterProps = { /** * Whether or not the vote process is loading. */ loading: boolean /** * If the current wallet has voted, this is their current vote. */ currentVote?: Vote /** * Function to cast a vote. */ onCastVote: (vote: Vote) => void | Promise /** * Vote options. */ options: ProposalVoteOption[] /** * Whether or not the proposal is still open. If not, and voting is still * allowed, explain that the user can vote up until expiration even though the * proposal outcome is already determined. */ proposalOpen: boolean /** * An optional class name for the container. */ className?: string }