import type { AppRegistryMeta } from '../../AppRegistry';
import { FolderOpen } from 'lucide-react';
import { FileBrowserPanelWrapper } from './FileBrowserApp';
import { FileBrowserWidget } from './FileBrowserWidget';

export { useFilesAPI, type DirEntry } from '../../hooks/useFilesAPI';
export { useTasks, type TaskSummary } from './useTasks';
export { useRecentFiles } from './useRecentFiles';
export { usePinnedFiles } from './usePinnedFiles';
export { FileBrowserApp, FileBrowserPanelWrapper } from './FileBrowserApp';
export { FileBrowserWidget } from './FileBrowserWidget';
export { TaskRunnerModal } from './FileBrowserApp/components/TaskRunnerModal';

export const appRegistryMetas: AppRegistryMeta[] = [
  {
    key: 'officerdev/file-browser',
    name: 'File Browser',
    icon: FolderOpen,
    component: FileBrowserPanelWrapper,
  },
  {
    key: 'officerdev/file-browser-widget',
    name: 'File Browser',
    icon: FolderOpen,
    component: FileBrowserWidget,
    availableOnPanel: false,
  },
];
