import React from "react";
import { Transition } from "@headlessui/react";
import { ExclamationTriangleIcon } from "@heroicons/react/24/solid";
import { ArrowRightIcon } from "@heroicons/react/16/solid";
import { LinkButton } from "@components/Button";
import LoadingSpinner from "@components/LoadingSpinner";
import { GridCard } from "@components/Card";
interface OverlayContentProps {
children: React.ReactNode;
}
function OverlayContent({ children }: OverlayContentProps) {
return (
{children}
);
}
interface LoadingOverlayProps {
show: boolean;
}
export function LoadingOverlay({ show }: LoadingOverlayProps) {
return (
);
}
interface ConnectionErrorOverlayProps {
show: boolean;
}
export function ConnectionErrorOverlay({ show }: ConnectionErrorOverlayProps) {
return (
Connection Issue Detected
- Verify that the device is powered on and properly connected
- Check all cable connections for any loose or damaged wires
- Ensure your network connection is stable and active
- Try restarting both the device and your computer
);
}
interface HDMIErrorOverlayProps {
show: boolean;
hdmiState: string;
}
export function HDMIErrorOverlay({ show, hdmiState }: HDMIErrorOverlayProps) {
const isNoSignal = hdmiState === "no_signal";
const isOtherError = hdmiState === "no_lock" || hdmiState === "out_of_range";
return (
<>
No HDMI signal detected.
- Ensure the HDMI cable securely connected at both ends
- Ensure source device is powered on and outputting a signal
-
If using an adapter, it's compatible and functioning
correctly
HDMI signal error detected.
- A loose or faulty HDMI connection
- Incompatible resolution or refresh rate settings
- Issues with the source device's HDMI output
>
);
}