function notSupported(name) {
  console.log('notSupported', name);
  return () => {
    throw new Error(
      `[hinkal-rn] circomlibjs-hinkal-fork.${name} is not available on React Native. ` +
        'The SDK uses poseidon-lite + an inline BabyJubJub instead.',
    );
  };
}

module.exports = {
  buildPoseidon: notSupported('buildPoseidon'),
  buildPoseidonReference: notSupported('buildPoseidonReference'),
  buildBabyjub: notSupported('buildBabyjub'),
};
