Files
SCM-Manager/scm-ui/src/components/SecondaryNavigation/NavAction.js

21 lines
313 B
JavaScript
Raw Normal View History

2018-07-25 13:21:49 +02:00
//@flow
import React from "react";
type Props = {
label: string,
action: () => void
};
class NavAction extends React.Component<Props> {
render() {
const { label, action } = this.props;
return (
<li>
<a onClick={action}>{label}</a>
</li>
);
}
}
export default NavAction;