mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 19:31:14 -05:00
11 lines
303 B
TypeScript
11 lines
303 B
TypeScript
import { useContext } from 'react';
|
|
import { AuthModalContext } from '@/contexts/AuthModalContext';
|
|
|
|
export const useAuthModal = () => {
|
|
const context = useContext(AuthModalContext);
|
|
if (!context) {
|
|
throw new Error('useAuthModal must be used within AuthModalProvider');
|
|
}
|
|
return context;
|
|
};
|