import { cn } from "@/lib/utils"; import { FC, HTMLAttributes, LegacyRef, forwardRef } from "react"; type DividerProps = HTMLAttributes & { text?: string; }; const Divider: FC = forwardRef( ({ className, text, ...props }, ref) => { return (
} className={cn("flex items-center justify-center", className)} {...props} >
{text !== undefined && (

{text}

)}
); } ); Divider.displayName = "AnimatedCard"; export { Divider };