mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-07 04:20:50 +02:00
11 lines
259 B
TypeScript
11 lines
259 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
interface ModalContextValue {
|
|
headerId: string;
|
|
}
|
|
|
|
export const ModalContext = createContext<ModalContextValue>({ headerId: '' });
|
|
|
|
export function useModalContext() {
|
|
return useContext(ModalContext);
|
|
}
|