14 lines
531 B
TypeScript
14 lines
531 B
TypeScript
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { RegisterClientOptions } from '@peertube/peertube-types/client/types'
|
|
import { createContext } from '@lit/context'
|
|
import { BehaviorSubject } from 'rxjs'
|
|
|
|
export const registerClientOptionsContext =
|
|
createContext<RegisterClientOptions | undefined>(Symbol('register-client-options'))
|
|
|
|
export const registerClientOptionsSubject$ =
|
|
new BehaviorSubject<RegisterClientOptions | undefined>(undefined)
|