import { ModuleClassnamesParams, textOptionsClassnames } from '@divi/module';
import { SortingAttrs } from './types';

/**
 * Module classnames function for Sorting.
 *
 * @since ??
 *
 * @param {ModuleClassnamesParams<SortingAttrs>} param0 Function parameters.
 */
export const moduleClassnames = ({
	classnamesInstance,
	attrs,
}: ModuleClassnamesParams<SortingAttrs>): void => {
	// Text Options.
	classnamesInstance.add(textOptionsClassnames(attrs?.module?.advanced?.text));
};
