This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Pluggable, PluginHost, usePluggableState } from '@netflix-internal/rgt-components/lib/lattice'; | |
import { getDefaultRoutes } from '../routes'; | |
import { Content, Header, Router } from './components'; | |
import { useFetchPluginConfiguration } from './hooks'; | |
export const App = ({ appName }: { appName: string }) => { | |
// Fetch plugin host configuration remotely for this application | |
const config = useFetchPluginConfiguration(appName); | |
// Allow for routes to be extended by plugins |