Remove unused UiPreview helper after FirmwarePreview landed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 22:10:26 +08:00
parent 937c0090d5
commit e8d86ec477

View File

@@ -1,27 +0,0 @@
"use client";
import { cn } from "@/lib/utils";
/** Scales an on-device HTML mock (320×240) into the card / detail media slot. */
export function UiPreview({
src,
className,
title,
}: {
src: string;
className?: string;
title?: string;
}) {
return (
<div className={cn("relative h-full w-full overflow-hidden bg-[#0a0806]", className)}>
<iframe
src={src}
title={title || "Firmware UI preview"}
className="pointer-events-none absolute inset-0 h-full w-full border-0"
loading="lazy"
sandbox="allow-scripts"
tabIndex={-1}
/>
</div>
);
}