import EggInstallContainer from '@/components/admin/nests/eggs/EggInstallContainer'; import EggVariablesContainer from '@/components/admin/nests/eggs/EggVariablesContainer'; import React from 'react'; import { useLocation } from 'react-router'; import tw from 'twin.macro'; import { Route, Switch, useRouteMatch } from 'react-router-dom'; import getEgg from '@/api/admin/eggs/getEgg'; import AdminContentBlock from '@/components/admin/AdminContentBlock'; import Spinner from '@/components/elements/Spinner'; import FlashMessageRender from '@/components/FlashMessageRender'; import { SubNavigation, SubNavigationLink } from '@/components/admin/SubNavigation'; import EggSettingsContainer from '@/components/admin/nests/eggs/EggSettingsContainer'; const EggRouter = () => { const location = useLocation(); const match = useRouteMatch<{ id?: string }>(); const { data: egg } = getEgg(Number(match.params?.id)); if (egg === undefined) { return (
); } return (

{egg.name}

{egg.uuid}

); }; export default () => { return ; };