import { useMemo } from 'react';
import { buildContentItems } from '../services/index.js';
export const useContentItems = ({ options, parser, }) => {
    const { contentItems, flatItems } = useMemo(() => buildContentItems(parser, options), [options, parser]);
    return {
        flatItems,
        contentItems,
    };
};
//# sourceMappingURL=useContentItems.js.map