import React from "react";
import { Text } from "react-native";
import { Button } from "react-native-paper";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

// const mapDispatchToProps = (dispatch) => ({
//   signOut: () => dispatch(employeeSignOut()),
// });

export function AddTimeTicketButton({ doOnPress }) {
  const { t } = useTranslation();
  return (
    <Button
      mode="text"
      compact={true}
      onPress={() => doOnPress()}
      icon="plus"
    >
    <Text style={{fontSize: 12}}>{t("timeticketbrowser.actions.ticket")}</Text> 
    </Button>
  );
}
export default connect(null, null)(AddTimeTicketButton);