"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SeparatedListView", {
    enumerable: true,
    get: function() {
        return SeparatedListView;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _ = require(".");
const _react = require("react");
const SeparatedListView = (props)=>{
    const { renderSeparator, renderItem, ...rest } = props;
    const length = (0, _react.useMemo)(()=>props.dataSource?.length ?? 0, [
        props.dataSource
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_.ListView, {
        renderItem: (item, index)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.Fragment, {
                children: [
                    renderItem(item, index),
                    index + 1 < length ? renderSeparator?.(item, index) : null
                ]
            }, index),
        ...rest
    });
};

//# sourceMappingURL=separated.js.map