def data_table_state(request):
    """Get a data table state.

    Args:
        request: The request.

    Returns:
        The data table state class.
    """

    class DataTableState(BaseState):
        data = request.param["data"]
        columns = ["column1", "column2"]

    return DataTableState
Get a data table state.

    Args:
        request: The request.

    Returns:
        The data table state class.
    
tests/units/components/datadisplay/conftest.py