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