def component4() -> type[Component]:
    """A test component with hook defined.

    Returns:
        A test component.
    """

    class TestComponent4(Component):
        def _get_hooks(self) -> str:
            return "const b = () => false"

    return TestComponent4
A test component with hook defined.

    Returns:
        A test component.
    
tests/units/components/test_component.py