import { Component, linkEvent } from "inferno"; import { I18NextService } from "../../services"; interface PaginatorProps { page: number; onChange(val: number): 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 - 1); } handleNext(i: Paginator) { i.props.onChange(i.props.page + 1); } }