import { useContext } from 'react';
import { ManageCurrencyContext } from './ManageCurrencyContext';

const useManageCurrencyContext = () => {
  const context = useContext(ManageCurrencyContext);

  if (!context) throw new Error('useManageCurrencyContext must be used within AuthProvider');

  return context;
};

export { useManageCurrencyContext };
