@sendbird/uikit-react-native
Version:
Sendbird UIKit for React Native: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
32 lines • 973 B
JavaScript
import React, { useContext } from 'react';
import { Icon, Text, useHeaderStyle, useUIKitTheme } from '@sendbird/uikit-react-native-foundation';
import { GroupChannelSettingsContexts } from '../module/moduleContext';
const GroupChannelSettingsHeader = ({
onPressHeaderLeft
}) => {
const {
colors
} = useUIKitTheme();
const {
headerTitle,
headerRight,
onPressHeaderRight
} = useContext(GroupChannelSettingsContexts.Fragment);
const {
HeaderComponent
} = useHeaderStyle();
return /*#__PURE__*/React.createElement(HeaderComponent, {
title: headerTitle,
left: /*#__PURE__*/React.createElement(Icon, {
icon: 'arrow-left'
}),
onPressLeft: onPressHeaderLeft,
right: /*#__PURE__*/React.createElement(Text, {
button: true,
color: colors.primary
}, headerRight),
onPressRight: onPressHeaderRight
});
};
export default GroupChannelSettingsHeader;
//# sourceMappingURL=GroupChannelSettingsHeader.js.map