import { View } from 'react-native';
import { Title } from '../../../../../elements';
import { useNavigation } from '@react-navigation/native';
import { useStyles } from './styles';
import BackButton from '../../../../../elements/BackButton';
import Button from '../../../../../components/Button/Button';
function Header({
  onSave,
  disabled
}) {
  const {
    styles
  } = useStyles();
  const navigation = useNavigation();
  return /*#__PURE__*/React.createElement(View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(BackButton, {
    onPress: navigation.goBack
  }), /*#__PURE__*/React.createElement(Title, {
    numberOfLines: 1,
    ellipsizeMode: "tail",
    style: styles.title
  }, "Post permissions"), /*#__PURE__*/React.createElement(Button, {
    type: "inline",
    onPress: onSave,
    disabled: disabled
  }, "Save"));
}
export default Header;
//# sourceMappingURL=Header.js.map