from typing import Dict


def approve(
        tresholds: Dict[str, float],
        face_confidence: float,
        face_class: str):
    """
    Check confidence

    Args:
        tresholds ([dict]): [ideal values]
        face_confidence ([float]): [current value]
        face_class ([str]): ['with_mask' or 'no_mask' class]

    Returns:
        [bool]
    """

    return face_confidence > tresholds[face_class]