import React from 'react'
import { Head, router } from '@inertiajs/react'
import { toast } from 'react-toastify'
import { HiOutlineBell } from 'react-icons/hi'
import {
HiChevronRight,
HiClipboardDocumentList,
HiOutlineUserCircle,
} from 'react-icons/hi2'
import CustomerLayout from '@/Layouts/CustomerLayout'
import { useModalState } from '@/hooks'
import ModalConfirm from '@/Components/ModalConfirm'
import BalanceBanner from '../Index/BalanceBanner'
export default function Index({ auth: { user }, notification_count }) {
const confirmModal = useModalState()
const handleLogoutClick = () => {
confirmModal.toggle()
}
const onLogout = () => {
router.post(route('customer.logout'))
}
const handleCopyToClipboard = (text) => {
toast.info('copied to clipboard')
navigator.clipboard.writeText(text)
}
return (