async def METHOD_NAME(
    self, interaction: disnake.Interaction, component: disnake.ui.Button | disnake.ui.Select
):
    """
    Updates the view such that the passed component is disabled while this context manager is active.
    Refreshes the view content after the context exits.
    """
    component.disabled = True
    await self.refresh_content(interaction)
    try:
        yield
    finally:
        component.disabled = False
        await self.refresh_content(interaction)