import './GradientText.css'; import React, { ReactNode } from 'react'; interface GradientTextProps { children: ReactNode; className?: string; colors?: string[]; animationSpeed?: number; showBorder?: boolean; } export default function GradientText({ children, className = '', colors = ['#40ffaa', '#4079ff', '#40ffaa', '#4079ff', '#40ffaa'], animationSpeed = 8, showBorder = false }: GradientTextProps) { const gradientStyle = { backgroundImage: `linear-gradient(to right, ${colors.join(', ')})`, animationDuration: `${animationSpeed}s` }; return (
{showBorder &&
}
{children}
); }