2022-02-28 18:00:47 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-05-30 22:02:08 +00:00
|
|
|
import { ILivechatDepartment } from '../../../definitions/ILivechatDepartment';
|
2022-02-28 18:00:47 +00:00
|
|
|
import DropdownItem from './DropdownItem';
|
|
|
|
|
|
|
|
interface IDropdownItemHeader {
|
2022-05-30 22:02:08 +00:00
|
|
|
department: ILivechatDepartment;
|
2022-02-28 18:00:47 +00:00
|
|
|
onPress: () => void;
|
|
|
|
}
|
|
|
|
|
2022-05-30 22:02:08 +00:00
|
|
|
const DropdownItemHeader = ({ department, onPress }: IDropdownItemHeader): React.ReactElement => (
|
2022-02-28 18:00:47 +00:00
|
|
|
<DropdownItem text={department?.name} iconName='filter' onPress={onPress} />
|
|
|
|
);
|
|
|
|
|
|
|
|
export default DropdownItemHeader;
|