This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2017-05-12 00:23:56 +00:00
|
|
|
// @flow
|
2016-05-30 18:56:19 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import styles from './HeaderAction.scss';
|
|
|
|
|
2017-05-12 00:23:56 +00:00
|
|
|
type Props = { onClick?: ?Function, children?: ?React.Element<any> };
|
|
|
|
|
|
|
|
const HeaderAction = (props: Props) => {
|
2016-05-30 18:56:19 +00:00
|
|
|
return (
|
2017-04-28 04:48:13 +00:00
|
|
|
<div onClick={props.onClick} className={styles.container}>
|
|
|
|
{props.children}
|
|
|
|
</div>
|
2016-05-30 18:56:19 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2017-04-28 04:48:13 +00:00
|
|
|
export default HeaderAction;
|