import type React from 'react' import { IBranch, IContentItem } from '../interfaces' import { BranchSelector } from './BranchSelector' import { DirectoryBrowser } from './DirectoryBrowser' import { getString } from '../utils/getString' const { Button } = wp.components export interface IDirectoryViewProps { selectedRepo: string | null branches: IBranch[] selectedBranch: string | null currentPath: string selectedFolderPath: string | null directoryContents: IContentItem[] loadingBranches: boolean loadingContents: boolean onSelectBranch: (branch: string) => void onNavigate: (path: string) => void onSelectFolder: (path: string) => void onBack: () => void onRefresh?: () => void defaultBranch?: string } /** * Directory browsing view container */ export const DirectoryView: React.FC = ({ selectedRepo, branches, selectedBranch, currentPath, selectedFolderPath, directoryContents, loadingBranches, loadingContents, onSelectBranch, onNavigate, onSelectFolder, onBack, onRefresh, defaultBranch }) => { return (
) }