'use client';
import React from 'react';
import { motion, Variants } from 'framer-motion';
import { cn } from '@/components/ui';
interface ScribbleProps {
variant: 'circle' | 'underline';
className?: string;
color?: string;
}
export default function Scribble({ variant, className, color = '#82ed20' }: ScribbleProps) {
const pathVariants: Variants = {
hidden: { pathLength: 0, opacity: 0 },
visible: {
pathLength: 1,
opacity: 1,
transition: {
duration: 1.8,
ease: "easeInOut",
}
}
};
if (variant === 'circle') {
return (
);
}
if (variant === 'underline') {
return (
);
}
return null;
}