Description: The Logo component renders the Komment logo. It accepts props to customize its appearance, including whether to display the full logo, the text "komment", or an icon.

Implements:

  • React.Component

Methods


Description: Renders the Komment logo based on the provided props.

Parameters:

  • text (bool): Whether to display the "komment" text.
    • Default: false
  • icon (bool): Whether to display the logo icon.
    • Default: false
  • full (bool): Whether to display the full logo.
    • Default: false
  • className (string): Additional CSS classes to apply to the logo container.
    • Default: null
  • ...props (any): Additional props to pass to the logo container.

Returns:

  • React.ReactElement: The JSX representation of the Komment logo.

Example:

<Logo text={true} />

This will render the Komment logo with the "komment" text displayed.

Considerations:

  • The component uses the Image component from @/components/elements/Image. Ensure this component is correctly imported and configured.
  • The logo image sources are defined in the require statements. Make sure these paths are correct and the images are available.
  • The component uses react-router-dom for the Link component. Ensure react-router-dom is installed and configured properly.
  • The classNames utility function is used to manage CSS classes. This utility function assumes the presence of a classnames library, ensure it is correctly imported and available.

==========