import { UserRepository } from '@amityco/ts-sdk-react-native';
import useLiveObject from '../useLiveObject';
export function useUser({
  userId,
  enabled = true
}) {
  const {
    item,
    ...rest
  } = useLiveObject({
    fetcher: UserRepository.getUser,
    params: userId,
    enabled: enabled && !!userId
  });
  return {
    user: item,
    ...rest
  };
}
//# sourceMappingURL=useUser.js.map