import { setData } from '../../utils/data.utils';
export const updateUser = async (user) => {
  console.log('User IC about to SET');
  const t0 = performance.now();
  const { data, id } = user;
  const updatedUser = await setData({ key: `/user`, id, data });
  const t1 = performance.now();
  console.log('User IC SET done', t1 - t0);
  return updatedUser;
};
