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