mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
21 lines
313 B
JavaScript
21 lines
313 B
JavaScript
|
|
//@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;
|