HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v4513/ivenusnew/public_html/wp-content/plugins/nCrafts-formcraft3/src/js/Pagination.js
let React = window.React
let ReactDOM = window.ReactDOM
let moment = window.moment
let createReactClass = require('create-react-class')

import Header from './Header.js'
import Helpers from './Helpers.js'

let Pagination = createReactClass({
	render: function() {
		return (
			<div className='pagination-cover'>
			<div className='pagination'>
			<div style={{ left: '0px' }}>
			{[...Array(this.props.pages)].map((x, index) => {
				return (
					<span key={index} className={ index + 1 === this.props.page ? 'active' : '' } onClick={this.props.updatePage.bind(null, index + 1)}>
						{index + 1}
					</span>
				)
			})}
			</div>
			</div>
			</div>
			)
	}
})

module.exports = Pagination