mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
20 lines
442 B
JavaScript
20 lines
442 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import { translate } from "react-i18next";
|
|
import { CreateButton } from "@scm-manager/ui-components";
|
|
|
|
type Props = {
|
|
t: string => string
|
|
};
|
|
|
|
class CreateGroupButton extends React.Component<Props> {
|
|
render() {
|
|
const { t } = this.props;
|
|
return (
|
|
<CreateButton label={t("create-group-button.label")} link="/groups/add" />
|
|
);
|
|
}
|
|
}
|
|
|
|
export default translate("groups")(CreateGroupButton);
|