import type { AppRegistryMeta } from '../../AppRegistry';
import { Eye } from 'lucide-react';
import { FileViewerBody } from './FileViewerBody';
import { FileViewerHeader } from './FileViewerHeader';
import { FileViewerPanelProvider } from './FileViewerPanelWrapper';

export { FileViewerView } from './FileViewerView';
export { FileViewerProvider } from './FileViewerProvider';
export { FileViewerHeader } from './FileViewerHeader';
export { FileViewerBody } from './FileViewerBody';
export { FileViewerPanelProvider } from './FileViewerPanelWrapper';
export { useFileViewer } from './FileViewerContext';
export { getFileType, getLang, getExt, getArchiveBaseName, ARCHIVE_EXTS, type FileType } from './file-types';

export const appRegistryMetas: AppRegistryMeta[] = [
  {
    key: 'officerdev/file-viewer',
    name: 'File Viewer',
    icon: Eye,
    component: FileViewerBody,
    header: FileViewerHeader,
    provider: FileViewerPanelProvider,
    availableOnPanel: false,
  },
];
