import { BrandMark } from './BrandMark.js' import { getDeviceModelImageUrl } from './device-models.js' import { HardwareInformation } from './HardwareInformation.js' import { getRequirementPills, type PresentedDevice } from './presentation.js' import { ProviderRequirements } from './ProviderRequirements.js' import { CheckMark, InfoMark } from './StatusMarks.js' export function DeviceRow({ device, }: { device: PresentedDevice }): JSX.Element { const image = getDeviceModelImageUrl(device.source) const pills = getRequirementPills(device) return (
0 ? ' seam-supported-device-with-pills' : ''}`} aria-label={device.name} > {image == null ? ( {device.name.slice(0, 1)} ) : ( )} {device.name} {device.source.capabilities_stale ? ( Compatibility is being refreshed. ) : device.capabilities.length === 0 ? ( Compatibility not confirmed. ) : ( {device.capabilities.map((capability) => { const conditional = capability.messages.length > 0 const status = conditional ? 'Requires setup' : 'Supported' return ( {conditional ? : } {capability.label} {' '} · {status} ) })} )} {pills.length > 0 ? ( {pills.map((pill) => ( {pill.label} ))} ) : ( Details )} Open requirements and model details

Available providers

    {device.providers.map((provider) => (
  • {provider.display_name ?? provider.slug} {provider.primary && This guide} {provider.integrationStatus === 'unsupported' && ( Not supported )}
  • ))}
) } export function CapabilityLegend(): JSX.Element { return (
Supported Requires setup · open requirements
) }