import { useEvent } from 'functional-mini/component';
import { mountComponent } from '../../_util/component';
import { useComponentEvent } from '../../_util/hooks/useComponentEvent';
var ListItem = function (props) {
    var _a = useComponentEvent(props), alipayForwardCatchEvent = _a.alipayForwardCatchEvent, alipayForwardEvent = _a.alipayForwardEvent;
    useEvent('onTap', function (e) {
        if (props.disabled) {
            return;
        }
        alipayForwardEvent('tap', e);
    }, [props]);
    useEvent('catchTap', function (e) {
        if (props.disabled) {
            return;
        }
        alipayForwardCatchEvent('tap', e);
    }, [props]);
    return {};
};
mountComponent(ListItem, {
    image: '',
    title: '',
    brief: '',
    arrow: null,
    extra: '',
    extraBrief: '',
    disabled: false,
    showDivider: true,
});
