import { useContext } from 'react';
// import { ManageSearchMemberContext } from '../ManageSearchMember';
import {ManageSearchMemberContext } from './ManageSearchMember';

export const useManageSearchMemberContext = () => {
  const context = useContext(ManageSearchMemberContext);
  if (!context) {
    throw new Error('useManageSearchMemberContext must be used within ManageSearchMemberContextProvider');
  }
  return context;
};