export const createUseLeftAccountsModule = ({ useAccountData, accountsCount, }) => {
    return function useLeftAccountsModule(params) {
        const accountData = useAccountData(params);
        return accountData.map(({ label, count }) => ({
            leftElement: count > 0 ? accountsCount({ label }) : undefined,
            description: count > 0 ? label : undefined,
            count,
        }));
    };
};
//# sourceMappingURL=useLeftAccounts.js.map