import React from 'react' import { X, Monitor, Smartphone, RotateCcw } from 'lucide-react' /** * Full-screen preview toolbar (the reference builder F:7815-7896): light pill, icon-only buttons — Exit, Desktop/Mobile, extra * actions (children), Restart. * Props: device, onDeviceChange(device), onExit(), onRestart(), children. */ export default function PreviewToolbar({ device = 'desktop', onDeviceChange, onExit, onRestart, children }) { const btn = 'w-9 h-9 rounded-full flex items-center justify-center text-slate-600 hover:text-slate-900 hover:bg-slate-100 transition-colors cursor-pointer' const dev = (id, label, Icon) => ( ) return (
{dev('desktop', 'Desktop', Monitor)} {dev('mobile', 'Mobile', Smartphone)}
{children}
) }