Hiyve Components - v1.0.0
    Preparing search index...

    Props for the PollHistory component.

    interface PollHistoryProps {
        colors?: Partial<PollsWindowColors>;
        icons?: Partial<PollsWindowIcons>;
        isOwner: boolean;
        labels?: Partial<PollsWindowLabels>;
        onDelete?: (pollId: string) => void;
        onPageChange?: (page: number) => void;
        onViewResults: (poll: Poll) => void;
        pageSize?: number;
        polls: Poll[];
        renderProps?: PollsWindowRenderProps;
        showPagination?: boolean;
        styles?: Partial<PollsWindowStyles>;
    }
    Index

    Properties

    colors?: Partial<PollsWindowColors>

    Custom colors

    icons?: Partial<PollsWindowIcons>

    Custom icons

    isOwner: boolean

    Whether current user is owner

    labels?: Partial<PollsWindowLabels>

    Custom labels

    onDelete?: (pollId: string) => void

    Delete handler (owner only)

    onPageChange?: (page: number) => void

    Callback when page changes

    onViewResults: (poll: Poll) => void

    View results handler

    pageSize?: number

    Number of polls to show per page (default: 10)

    polls: Poll[]

    Ended polls

    Render props

    showPagination?: boolean

    Whether to show pagination controls (default: true when needed)

    styles?: Partial<PollsWindowStyles>

    Custom styles