'use client'; import Link from 'next/link'; import { Variants, motion } from 'framer-motion'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; import { Card, CardContent, CardTitle } from '@documenso/ui/primitives/card'; import { TOSSFriendsSchema } from './schema'; const ContainerVariants: Variants = { initial: { opacity: 0, }, animate: { opacity: 1, transition: { staggerChildren: 0.075, }, }, }; const CardVariants: Variants = { initial: { opacity: 0, y: 50, }, animate: { opacity: 1, y: 0, transition: { duration: 0.5, }, }, }; const randomDegrees = () => { const degrees = [45, 120, -140, -45]; return degrees[Math.floor(Math.random() * degrees.length)]; }; export type OSSFriendsContainerProps = { className?: string; ossFriends: TOSSFriendsSchema; }; export const OSSFriendsContainer = ({ className, ossFriends }: OSSFriendsContainerProps) => { return ( {ossFriends.map((friend, index) => ( {friend.name}

{friend.description}

))}
); };