/**
 * Resizes the height of a textarea to match its content.
 *
 * @param {HTMLElement} textarea textarea element
 */

export const resizeTextarea = (textarea) => {
    textarea.style.height = 'auto';
    textarea.style.height = `${textarea.scrollHeight + 8}px`;
};