mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 14:05:28 +03:00
12 lines
236 B
TypeScript
12 lines
236 B
TypeScript
|
|
import { createContext } from "react";
|
||
|
|
|
||
|
|
export type Update = {
|
||
|
|
topic: string;
|
||
|
|
payload: unknown;
|
||
|
|
retain: boolean;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type WsSend = (update: Update) => void;
|
||
|
|
|
||
|
|
export const WsSendContext = createContext<WsSend | null>(null);
|