import React from 'react';

// @ts-ignore
export default function AdjustSize(Text: String) {
    const titleLength = Text.length;
    const minFontSize = 23;
    const maxFontSize = 48;
    const fontRatio = 1.1;
    const fontSize = Math.max(minFontSize, maxFontSize - (titleLength * fontRatio));
    return fontSize;
}