HEX
Server: LiteSpeed
System: Linux server902.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: deshuvsd (2181)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/deshuvsd/www/wp-content/plugins/surerank/src/apps/admin-components/character-limit-status.js
import { cn } from '@Functions/utils';

const CharacterLimitStatus = ( { length, maxLength, align = 'right' } ) => {
	return (
		<span
			className={ cn( 'text-xs leading-4 font-normal text-field-helper', {
				'ml-auto': align === 'right',
				'mr-auto': align === 'left',
			} ) }
		>
			<span
				className={ cn( {
					'text-text-error': length > maxLength,
				} ) }
			>
				{ length ?? 0 }
			</span>
			/{ maxLength }
		</span>
	);
};

export default CharacterLimitStatus;