import { isRecord } from '@admin/utils/shared/is-record' export function readStringProperty(value: unknown, key: string): string | undefined { if (!isRecord(value)) return undefined const property = value[key] return typeof property === 'string' ? property : undefined }