import type { DeviceModel } from '@seamapi/types/devicedb' import classNames from 'classnames' import { DotDivider } from 'lib/ui/layout/DotDivider.js' interface SupportedDeviceRowProps { deviceModel: DeviceModel } export function SupportedDeviceRow({ deviceModel, }: SupportedDeviceRowProps): JSX.Element { return (
) } export function ImageColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element { return (
) } export function ModelColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element { const sku = deviceModel.aesthetic_variants[0]?.manufacturer_sku const connection = deviceModel.main_connection_type === 'unknown' ? null : deviceModel.main_connection_type return (
{deviceModel.display_name}
{sku} {sku != null && connection != null && } {connection}
) } export function StatusColumn({ deviceModel, }: SupportedDeviceRowProps): JSX.Element { const statusColor = supportLevelColors[deviceModel.manufacturer.integration] ?? 'unknown' return (
{status[deviceModel.manufacturer.integration]}
) } const supportLevelColors: Record< DeviceModel['manufacturer']['integration'], 'green' | 'blue' | 'unknown' > = { stable: 'green', beta: 'blue', planned: 'unknown', unsupported: 'unknown', inquire: 'unknown', } const status: Record = { stable: 'LIVE', beta: 'BETA', unsupported: 'Inquire', planned: 'Inquire', inquire: 'Inquire', }