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

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