@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
24 lines (23 loc) • 825 B
JavaScript
import React from 'react';
import ChatIcon from '@atlaskit/icon/core/ai-chat';
import { ListItem } from '../../components/list-item';
import { Button } from './themed/button';
/**
* __Chat button__
*
* The chat button for the top navigation.
* TODO: check if this is still needed and remove. Jira doesn't use it - there's a separate button for ConversationAssistant
*/
export var ChatButton = function ChatButton(_ref) {
var children = _ref.children,
onClick = _ref.onClick,
isSelected = _ref.isSelected,
interactionName = _ref.interactionName;
return /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Button, {
appearance: "default",
iconBefore: ChatIcon,
onClick: onClick,
isSelected: isSelected,
interactionName: interactionName
}, children));
};