import type React from 'react'; import { FiCode, FiSliders } from 'react-icons/fi'; import { TabButton } from '@app/components/TabButton'; import type { Plugin } from '@app/pages/settings/Plugins'; import { Sidebar } from '@components/generic/Sidebar'; import { Tab } from '@headlessui/react'; import { ExternalNotificationsDebugPanel } from './panels/ExternalNotifications/DebugPanel'; import { ExternalNotificationsSettingsPlanel } from './panels/ExternalNotifications/SettingsPlanel'; import { RangeTestDebugPanel } from './panels/RangeTest/DebugPanel'; import { RangeTestSettingsPanel } from './panels/RangeTest/SettingsPanel'; import { SerialDebugPanel } from './panels/Serial/DebugPanel'; import { SerialSettingsPanel } from './panels/Serial/SettingsPanel'; import { StoreForwardDebugPanel } from './panels/StoreForward/DebugPanel'; import { StoreForwardSettingsPanel } from './panels/StoreForward/SettingsPanel'; export interface PluginsSidebarProps { plugin?: Plugin; closeSidebar: () => void; } export const PluginsSidebar = ({ plugin, closeSidebar, }: PluginsSidebarProps): JSX.Element => { return ( {plugin && (
{plugin === 'Range Test' && ( <> )} {plugin === 'External Notifications' && ( <> )} {plugin === 'Serial' && ( <> )} {plugin === 'Store & Forward' && ( <> )}
)}
); };