import React, { useState } from 'react'; interface BoundingBoxProps { top: string; left: string; width: string; height: string; type: 'aggression' | 'isolation'; } const BoundingBox: React.FC = ({ top, left, width, height, type }) => { const styles = { aggression: 'border-red-500 bg-red-500/20', isolation: 'border-yellow-400 bg-yellow-400/20', }; return (
); }; const behaviorDetections = { all: [ { top: '30%', left: '25%', width: '8%', height: '12%', type: 'aggression' as const }, { top: '32%', left: '33%', width: '8%', height: '12%', type: 'aggression' as const }, { top: '70%', left: '70%', width: '10%', height: '15%', type: 'isolation' as const }, { top: '20%', left: '80%', width: '9%', height: '13%', type: 'isolation' as const }, ], aggression: [ { top: '30%', left: '25%', width: '8%', height: '12%', type: 'aggression' as const }, { top: '32%', left: '33%', width: '8%', height: '12%', type: 'aggression' as const }, ], isolation: [ { top: '70%', left: '70%', width: '10%', height: '15%', type: 'isolation' as const }, { top: '20%', left: '80%', width: '9%', height: '13%', type: 'isolation' as const }, ], }; const LiveBehaviorView: React.FC = () => { const [filter, setFilter] = useState<'all' | 'aggression' | 'isolation'>('all'); const FilterButton: React.FC<{ type: 'all' | 'aggression' | 'isolation'; label: string; icon: string; }> = ({ type, label, icon }) => ( ); return (

Tampilan Langsung Perilaku AI

Live camera feed from coop {behaviorDetections[filter].map((box, i) => ( ))}
Agresi: 2
Isolasi: 2

Kamera: Zona C-2

); }; export default LiveBehaviorView;