import { ReactNode } from "react" import Image from "next/image" import { DeviceFrameset } from "react-device-frameset" import "react-device-frameset/styles/marvel-devices.min.css" import { useOrientation } from "@/lib/hooks" import { cn } from "@/lib/utils" import HFLogo from "../../app/hf-logo.svg" export function DeviceFrame({ children, companion, showFrame = false }: { children?: ReactNode companion?: ReactNode showFrame?: boolean }) { const { isLandscape, isPortrait } = useOrientation() if (!showFrame) { return children } return (
{children}
Powered by Hugging Face Hugging Face
{companion}
) }