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

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