mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
11 lines
356 B
TypeScript
11 lines
356 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
/**
|
|
* When the message is rendered as part of the detailView (right panel) we disable onClick and make some other minor UI changes
|
|
*/
|
|
export const IsDetailMessageViewContext = createContext<boolean>(false);
|
|
|
|
export function useIsDetailMessageView() {
|
|
return useContext(IsDetailMessageViewContext);
|
|
}
|