"use client"; import { useState } from "react"; const DEVICES = { phone: { width: 390, height: 844 }, tablet: { width: 820, height: 1180 }, desktop: { width: 1440, height: 900 } }; export default function DevicePreview({ url = "http://localhost:3000" }) { const [device, setDevice] = useState("phone"); const size = DEVICES[device]; return (