import { Component, linkEvent } from "inferno"; import { i18n } from "../../i18next"; interface PaginatorProps { page: bigint; onChange(val: bigint): any; } export class Paginator extends Component { constructor(props: any, context: any) { super(props, context); } render() { return (
); } handlePrev(i: Paginator) { i.props.onChange(i.props.page - 1n); } handleNext(i: Paginator) { i.props.onChange(i.props.page + 1n); } }