hostinfo/entrypoints/popup/Popup.tsx
2025-03-15 17:22:38 +01:00

20 lines
353 B
TypeScript

import ServerInfo from '@/components/ServerInfo';
import Error from '@/components/Error';
export default function Popup() {
const { data, error } = useTabData();
if (error) {
return (
<Error error={error} />
);
}
if (!data) {
return (
<Error error="No data found" />
);
}
return <ServerInfo data={data} />;
}