mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
* refactor(mobile): give relay and encryption concrete owners * refactor(mobile): organize session and review feature owners * refactor(mobile): organize RPC and host ownership * test(mobile): point render fixtures at concrete owners * refactor(mobile): use explicit type-only owner imports
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
import type { MobileDiffLine } from './review/mobile-diff-lines'
|
|
|
|
export function mobileDiffLinePrefix(kind: MobileDiffLine['kind']): string {
|
|
if (kind === 'add') {
|
|
return '+'
|
|
}
|
|
if (kind === 'delete') {
|
|
return '-'
|
|
}
|
|
return ' '
|
|
}
|
|
|
|
export function mobileDiffLineNumber(line: MobileDiffLine): string {
|
|
return String(line.newLineNumber ?? line.oldLineNumber ?? '')
|
|
}
|