import React from 'react' import { Monitor, Smartphone } from 'lucide-react' import FaIcon from './FaIcon' /** * Icon-only Desktop / Mobile switch (the reference builder F:7634-7660): w-7 h-7 round buttons inside a rounded-full island. * Props: value ('desktop' | 'mobile'), onChange(value), dark (preview toolbar variant). */ export default function DeviceSwitcher({ value = 'desktop', onChange, dark = false }) { const item = (id, label, fa, Fallback) => { const active = value === id return ( ) } return (
{item('desktop', 'Desktop', 'fa-desktop', Monitor)} {item('mobile', 'Mobile', 'fa-mobile-alt', Smartphone)}
) }