{page}
import React, { useState, useEffect } from 'react'; import { ToastContainer, toast } from 'react-toastify'; import ApplicationLogo from '@/Components/Defaults/ApplicationLogo'; import Dropdown from '@/Components/Defaults/Dropdown'; import { Link } from '@inertiajs/react'; import { Breadcrumb } from 'flowbite-react'; import { HiMenu, HiChevronDown, HiHome } from 'react-icons/hi' import { router } from '@inertiajs/react'; import SidebarNav from './Partials/SidebarNav'; export default function Authenticated({ auth, children, flash, page = '', action = ''}) { const [showingNavigationDropdown, setShowingNavigationDropdown] = useState(false); useEffect(() => { if (flash.message !== null) { toast(flash.message.message, {type: flash.message.type}) } }, [flash]) return (
{page}