You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			11 lines
		
	
	
		
			356 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			356 B
		
	
	
	
		
			TypeScript
		
	
| 
								 
											2 years ago
										 
									 | 
							
								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);
							 | 
						||
| 
								 | 
							
								}
							 |