def target_state(target_dict):
    """Converting properties to target states
    Args:
        target_dict: dictionary containing target names as keys and target objects as values
    Returns:
        dictionary mapping target name to its state
    """
    if {} == target_dict:
        return None

    result = {}
    for key, value in target_dict.iteritems():
        if not value.repaired:
            result[key] = "cut"
        elif value.targetable:
            result[key] = "targetable"
        else:
            result[key] = "untargetable"
    return result