export function toCursor({ value }: { value: string }) { return Base64.encode(value); } export function fromCursor(str: string): string | null { const value = Base64.decode(str); if (value) { return value; } else { return null; } }