import React from 'react';
import { View } from '../types/common.ts';
import NavLink, { NavItem } from './sidebar/NavLink.tsx';
const navItems: NavItem[] = [
{
view: 'dashboard',
label: 'Dashboard',
icon: ,
},
{
view: 'dataManagement',
label: 'Hitung Ayam',
icon: ,
},
{
view: 'weightMonitoring',
label: 'Berat Ayam',
icon: ,
subItems: [
{
view: 'weightMonitoring',
label: 'Dashboard Berat',
icon: ,
},
{
view: 'weightStandard',
label: 'Standar Mr. Mike',
icon: ,
},
],
},
{
view: 'feedSackCounting',
label: 'Manajemen Pakan',
icon: ,
subItems: [
{
view: 'feedSackCounting',
label: 'Hitung Karung',
icon: ,
},
{
view: 'cobbStandard',
label: 'Standar Performa',
icon: ,
},
],
},
{
view: 'iotPanel',
label: 'Panel IoT',
icon: ,
},
{
view: 'fcrDashboard',
label: 'FCR',
icon: ,
},
{
view: 'eefDashboard',
label: 'EEF',
icon: ,
},
{
view: 'kandangSettings',
label: 'Pengaturan',
icon: ,
},
];
interface SidebarProps {
isCollapsed: boolean;
view: View;
setView: (view: View) => void;
onToggleCollapse: () => void;
}
const Sidebar: React.FC = ({ isCollapsed, view, setView, onToggleCollapse }) => (
);
export default Sidebar;