Files
tolaria/apps/mobile/src/mobilePropertyPicker.ts
2026-05-05 16:16:29 +02:00

22 lines
459 B
TypeScript

export type MobilePropertyPickerKey = 'date' | 'icon' | 'status' | 'tags' | 'type'
export function nextMobilePropertyPicker({
current,
selected,
}: {
current: MobilePropertyPickerKey | null
selected: MobilePropertyPickerKey
}) {
return current === selected ? null : selected
}
export function mobilePropertyDisplayValue({
fallback = 'None',
value,
}: {
fallback?: string
value: string | undefined
}) {
return value?.trim() || fallback
}