import React from 'react' import useIsAdminPage from '~/hooks/useIsAdminPage' import NavItem from './navItem' import styles from './nav.module.css' export default function AdminNav({children}){ const isAdminPage = useIsAdminPage() if(!isAdminPage) return (
{children}
) return (
Dashboard Items Categories Orders Users Shipments Coupons
{children}
) }