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.
outline/frontend/components/Layout/components/HeaderAction/HeaderAction.js

17 lines
338 B
JavaScript
Raw Normal View History

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 (
<div onClick={props.onClick} className={styles.container}>
{props.children}
</div>
2016-05-30 18:56:19 +00:00
);
};
export default HeaderAction;