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

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