import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
/**
 * Utility function to validate an array of directional arrows.
 * Ensures there is at least one valid arrow in the array.
 * If the array is empty, it returns a default arrow object.
 */
export const validateArrows = (arrows) => {
    if (checkEmpty(arrows)) {
        return [
            {
                direction: null,
                menuOptions: [
                    {
                        label: 'Sub Module',
                        value: 'sub_module',
                        icon: '',
                        disable: false,
                        tooltipForOption: '',
                        tooltipPlacementForOption: undefined,
                    },
                ],
            },
        ];
    }
    return arrows;
};
//# sourceMappingURL=type.js.map