import classNames from 'classnames' import PropTypes, { InferProps } from 'prop-types' import React from 'react' import { View } from '@tarojs/components' import { AtActionSheetFooterProps } from '../../../../types/action-sheet' export default class AtActionSheetFooter extends React.Component< AtActionSheetFooterProps > { public static defaultProps: AtActionSheetFooterProps 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__footer', this.props.className ) return ( {this.props.children} ) } } AtActionSheetFooter.propTypes = { onClick: PropTypes.func }