import type { Device } from '@seamapi/types/connect' import { LockLockedIcon } from 'lib/icons/LockLocked.js' import { LockUnlockedIcon } from 'lib/icons/LockUnlocked.js' import { isLockDevice } from 'lib/seam/locks/lock-device.js' interface LockStatusProps { device: Device } export function LockStatus(props: LockStatusProps): JSX.Element | null { if (!isLockDevice(props.device)) { return null } const { device: { properties: { locked }, }, } = props if (locked === null) { return null } return (