export function getCharacterCountState(maxChars, currentLength) {
    const remaining = maxChars - currentLength;
    const threshold = Math.round(maxChars * 0.2);
    return {
        remaining,
        visible: remaining >= 0 && remaining <= threshold,
    };
}
export function isCharacterLimitExceeded(maxChars, currentLength) {
    return !!maxChars && currentLength > maxChars;
}
