import clsx from 'clsx'; import PropTypes from 'prop-types'; import React from 'react'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import { Header } from '../Header'; import RecentActivityView from '../RecentActivityView'; import expandable from './expandable'; import styles from './styles.scss'; const ToggleIcon = ({ expanded }: any) => ( ); ToggleIcon.propTypes = { expanded: PropTypes.bool.isRequired, }; /** * RecentActivityPanel component provides a animated slide-out panel. */ const RecentActivityPanel = (props: any) => { const { title, expanded, onPanelToggle } = props; const toggleButton = { label: , onClick: onPanelToggle, placement: 'right', }; if (!props.currentContact) { return null; } const containerClass = clsx(styles.container, props.className); return (
{title}
); }; RecentActivityPanel.propTypes = { title: PropTypes.string.isRequired, currentContact: PropTypes.object, onPanelToggle: PropTypes.func.isRequired, expanded: PropTypes.bool.isRequired, className: PropTypes.string, }; RecentActivityPanel.defaultProps = { currentContact: null, className: null, }; const ExpandableRecentActivityPanel = expandable({ styles: { height: '200px', offset: '27px', }, className: styles.expandable, })(RecentActivityPanel); export default ExpandableRecentActivityPanel;