2018-07-31 18:44:01 +02:00
|
|
|
//@flow
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { translate } from "react-i18next";
|
2018-09-05 14:32:49 +02:00
|
|
|
import { CreateButton } from "@scm-manager/ui-components";
|
2018-07-31 18:44:01 +02:00
|
|
|
|
|
|
|
|
type Props = {
|
2018-08-08 14:59:39 +02:00
|
|
|
t: string => string
|
2018-07-31 18:44:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class CreateGroupButton extends React.Component<Props> {
|
|
|
|
|
render() {
|
2018-08-08 14:59:39 +02:00
|
|
|
const { t } = this.props;
|
2018-07-31 18:44:01 +02:00
|
|
|
return (
|
2018-08-08 14:59:39 +02:00
|
|
|
<CreateButton label={t("create-group-button.label")} link="/groups/add" />
|
2018-07-31 18:44:01 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-08 14:59:39 +02:00
|
|
|
export default translate("groups")(CreateGroupButton);
|