/** * WordPress dependencies */ /** * Internal dependencies */ import { GlobalStylesProvider } from '../provider'; import FontLibraryProvider from './context'; import InstalledFonts from './installed-fonts'; import UploadFonts from './upload-fonts'; import FontCollection from './font-collection'; interface FontLibraryProps { value: any; baseValue: any; onChange: ( value: any ) => void; activeTab?: string; onTabChange?: ( tab: string ) => void; } export function FontLibrary( { value, baseValue, onChange, activeTab = 'installed-fonts', }: FontLibraryProps ) { let content; switch ( activeTab ) { case 'upload-fonts': content = ; break; case 'installed-fonts': content = ; break; default: content = ; } return ( { content } ); }