Example
import { TaskContext } from "@twilio/flex-ui";
<TaskContext.Consumer>
 {(context) => (
  <MyComponent
    task={context.task}
    call={context.call}
  />
 )}
</TaskContext.Consumer>Type Definitions
    
        
        
object
    
    
    
            
            # TaskContextProps
    Task Context interface
    Properties:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| task | ITask | <optional> | Task. | 
| call | PhoneState.PhoneCallState | <optional> | Call state of the task. | 
| conference | ConferenceState | <optional> | Conference state of the task. | 
| chatChannel | ChannelsState.ChannelState | <optional> | Chat channel state of the task. | 
| channelDefinition | TaskChannelDefinition | <optional> | Channel definition of the task. |