import classNames from 'classnames' import PropTypes, { InferProps } from 'prop-types' import React from 'react' import { View } from '@tarojs/components' import { AtActionSheetItemProps } from '../../../../../types/action-sheet' export default class AtActionSheetItem extends React.Component< AtActionSheetItemProps > { public static defaultProps: AtActionSheetItemProps public static propTypes: InferProps private handleClick = (args: any): void => { if (typeof this.props.onClick === 'function') { this.props.onClick(args) } } public render(): JSX.Element { const rootClass = classNames('at-action-sheet__item', this.props.className) return ( {this.props.children} ) } } AtActionSheetItem.propTypes = { onClick: PropTypes.func }