/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { createContext, useState } from 'react'; import type { ContextValue } from '@sendbird/uikit-utils'; import { NOOP } from '@sendbird/uikit-utils'; import ProviderLayout from '../../../components/ProviderLayout'; import type { UserListContextsType, UserListModule } from '../types'; export const UserListContexts: UserListContextsType = { Fragment: createContext({ headerTitle: '', headerRight: '', }), List: createContext['List']>>({ selectedUsers: [], setSelectedUsers: NOOP, }), }; export const UserListContextsProvider: UserListModule['Provider'] = ({ children, headerTitle, headerRight }) => { const [selectedUsers, setSelectedUsers] = useState([]); return ( {children} ); };