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


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