Skip to content

Send files directly between devices over the internet - no cloud storage, no size limits.

442 B
Raw Blame
import { GlobeIcon, LaptopIcon, MonitorIcon, SmartphoneIcon, TabletIcon } from './set'
import type { IconComponent } from './types'

export function deviceIcon(deviceType: string): IconComponent {
  switch (deviceType) {
    case 'laptop':
      return LaptopIcon
    case 'desktop':
      return MonitorIcon
    case 'tablet':
      return TabletIcon
    case 'browser':
      return GlobeIcon
    default:
      return SmartphoneIcon
  }
}