def _get_component_style(self, styles: ComponentStyle | Style) -> Style | None:
        """Get the style to the component from `App.style`.

        Args:
            styles: The style to apply.

        Returns:
            The style of the component.
        """
        component_style = None
        if (style := styles.get(type(self))) is not None:  # pyright: ignore [reportArgumentType]
            component_style = Style(style)
        if (style := styles.get(self.create)) is not None:  # pyright: ignore [reportArgumentType]
            component_style = Style(style)
        return component_style
Get the style to the component from `App.style`.

        Args:
            styles: The style to apply.

        Returns:
            The style of the component.
        
reflex/components/component.py