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

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