diff --git a/frontend/src/components/RibbonBar.tsx b/frontend/src/components/RibbonBar.tsx new file mode 100644 index 0000000..d423143 --- /dev/null +++ b/frontend/src/components/RibbonBar.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import './RibbonBar.css'; + +interface RibbonBarProps { + onTabChange: (tab: string) => void; +} + +const RibbonBar: React.FC = ({ onTabChange }) => { + const [activeTab, setActiveTab] = useState('draw'); + + const tabs = [ + { id: 'draw', label: 'Draw', icon: '✏️' }, + { id: 'modify', label: 'Modify', icon: '🔧' }, + { id: 'annotate', label: 'Annotate', icon: '📝' }, + { id: 'view', label: 'View', icon: '👁️' }, + { id: 'tools', label: 'Tools', icon: '🛠️' }, + ]; + + const handleTabClick = (tabId: string) => { + setActiveTab(tabId); + onTabChange(tabId); + }; + + return ( +
+ {tabs.map((tab) => ( + + ))} +
+ ); +}; + +export default RibbonBar; \ No newline at end of file