@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
23 lines (22 loc) • 701 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 const ChatButton = ({
children,
onClick,
isSelected,
interactionName
}) => /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Button, {
appearance: "default",
iconBefore: ChatIcon,
onClick: onClick,
isSelected: isSelected,
interactionName: interactionName
}, children));