import AsyncStorage from "@react-native-async-storage/async-storage"; function storageKey(accountId: string) { return `beenvoice:time-clock:last-client:${accountId}`; } export async function getLastTimeClockClientId(accountId: string): Promise { return AsyncStorage.getItem(storageKey(accountId)); } export async function setLastTimeClockClientId( accountId: string, clientId: string, ): Promise { if (!clientId) return; await AsyncStorage.setItem(storageKey(accountId), clientId); } export async function clearTimeClockPrefsForAccount(accountId: string): Promise { await AsyncStorage.removeItem(storageKey(accountId)); }