import React, { useEffect, useState } from 'react'
import { Link, router } from '@inertiajs/react'
import { usePrevious } from 'react-use'
import { Head } from '@inertiajs/react'
import { HiEye } from 'react-icons/hi2'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'
import Pagination from '@/Components/Pagination'
import SearchInput from '@/Components/SearchInput'
export default function Index(props) {
const {
query: { links, data },
} = props
const [search, setSearch] = useState('')
const preValue = usePrevious(search)
const params = { q: search }
useEffect(() => {
if (preValue) {
router.get(
route(route().current()),
{ q: search },
{
replace: true,
preserveState: true,
}
)
}
}, [search])
return (
Nama | Level | Deposit | Status | |
---|---|---|---|---|
{customer.name} | {customer.level.name} | {customer.display_deposit} | { customer.verification_status } |
Lihat
|