import csv


def get_csv_data(file_name: str) -> list:
    """_summary_
    Get user data from csv file and return a list of dictionaries.

    Args:
        file_name (str): _description_

    Returns:
        list: _description_
            List of dictionaries contain the user data. The list is empty if the file is empty. The list is not empty if the file is not empty.

    """
    with open(file_name, "r") as f:
        # read the csv file
        reader = csv.DictReader(f)
        # store the data in a list of dictionaries
        user_data = []
        for item in reader:
            user_data.append(item)

    # return the list of dictionaries
    return user_data