import React, { Component } from 'react'; import { getClassName } from '../../helpers/getClassName'; import { classNames } from '../../lib/classNames'; import { withPlatform } from '../../hoc/withPlatform'; import { HasPlatform } from '../../types'; interface Props extends HasPlatform { closing: boolean; onClose(): void; toggleRef: Element; elementRef: React.RefObject; } type ClickHandler = (event: React.MouseEvent) => void; class ActionSheetDropdown extends Component { onClose = () => { this.props.onClose(); }; stopPropagation: ClickHandler = (e: React.MouseEvent) => e.stopPropagation(); render() { const { children, platform, elementRef, toggleRef, closing, ...restProps } = this.props; const baseClaseName = getClassName('ActionSheet', platform); return (
{children}
); } } export default withPlatform(ActionSheetDropdown);