peertube-plugin-livechat/client/common/lib/contexts/peertube.ts

14 lines
531 B
TypeScript
Raw Normal View History

2024-05-23 15:17:28 +00:00
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
//
// SPDX-License-Identifier: AGPL-3.0-only
2024-05-23 14:56:11 +00:00
import type { RegisterClientOptions } from '@peertube/peertube-types/client/types'
import { createContext } from '@lit/context'
import { BehaviorSubject } from 'rxjs'
2024-05-23 14:56:11 +00:00
2024-05-23 20:52:39 +00:00
export const registerClientOptionsContext =
createContext<RegisterClientOptions | undefined>(Symbol('register-client-options'))
export const registerClientOptionsSubject$ =
new BehaviorSubject<RegisterClientOptions | undefined>(undefined)