import { memo, type ReactNode } from "react"; import "./rds-comp-ai-gradient-text-with-icon.scss"; export interface RdsCompAiGradientTextProps { logoUrl?: string; title?: string; logo?: ReactNode; showImage?: boolean; showIcon?: boolean; } const RdsCompAiGradientTextWithIcon = memo(({ logoUrl, title, logo, showImage, showIcon, }: RdsCompAiGradientTextProps) => (
{showImage && {title} {showIcon && logo}
{title}
)); RdsCompAiGradientTextWithIcon.displayName = "RdsCompAiGradientTextWithIcon"; export default RdsCompAiGradientTextWithIcon;