mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
10 lines
278 B
TypeScript
10 lines
278 B
TypeScript
import { createContext, RefObject, useContext } from 'react';
|
|
|
|
export const MessagesContainerRefContext = createContext<RefObject<HTMLDivElement | null>>({
|
|
current: null,
|
|
});
|
|
|
|
export const useMessagesContainerRef = () => {
|
|
return useContext(MessagesContainerRefContext);
|
|
};
|