mirror of
https://github.com/skidoodle/hostinfo
synced 2025-03-16 13:59:38 +01:00
20 lines
353 B
TypeScript
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} />;
|
|
}
|