from typing import List

from ..report_element import CustomReportElement


class DisableLayoutFieldsPreparer(CustomReportElement):
    """Removes specified fields from the report layout."""

    def __init__(self, params: List[str]):
        """Creates a DisableLayoutFieldsPreparer.

        Args:
            params: List of field names to remove from the layout.
        """
        super().__init__(name="disable_layout_fields", params=params)
