Class: Logo
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
Method: Logo
Description: Renders the Komment logo based on the provided props.
Parameters:
text
(bool
): Whether to display the "komment" text.- Default:
false
- Default:
icon
(bool
): Whether to display the logo icon.- Default:
false
- Default:
full
(bool
): Whether to display the full logo.- Default:
false
- Default:
className
(string
): Additional CSS classes to apply to the logo container.- Default:
null
- Default:
...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 theLink
component. Ensurereact-router-dom
is installed and configured properly. - The
classNames
utility function is used to manage CSS classes. This utility function assumes the presence of aclassnames
library, ensure it is correctly imported and available.
==========