export const UserFactory = {
  fromApiUser(data) {
    if (!data) return null
    return {
      id: data.id,
      email: data.email,
      name: data.name,
      creditsBalance: data.credits_balance,
      freeUsed: data.free_used,
    }
  },
}
