The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
at master 1.6 kB view raw
1import { cn } from "@/utils/cn"; 2import { Patrick_Hand } from "next/font/google"; 3import Image, { type StaticImageData } from "next/image"; 4import { HiChevronRight } from "react-icons/hi"; 5 6const handwritten = Patrick_Hand({ subsets: ["latin"], weight: "400" }); 7 8interface Props { 9 username: string; 10 bio?: React.ReactNode; 11 avatar: string | StaticImageData; 12 content: string | React.ReactNode; 13} 14 15export default function Comment({ 16 username, 17 bio, 18 avatar, 19 content 20}: Props) { 21 return ( 22 <div className="w-full mb-6 mt-9"> 23 <div className="flex gap-4 items-center mb-2"> 24 <span className="flex items-center gap-3"> 25 <Image 26 alt="users's profile picture" 27 className="w-12 h-12 rounded-full" 28 height={64} 29 src={avatar} 30 width={64} 31 /> 32 <div> 33 <span className="text-xl font-medium dark:text-neutral-200 text-neutral-800"> 34 {username} 35 </span> <br /> 36 <span className="dark:text-neutral-300 text-neutral-700"> 37 {bio} 38 </span> 39 </div> 40 </span> 41 <HiChevronRight className="w-8 h-8" /> 42 </div> 43 <span className={cn(handwritten.className, "text-2xl break-words")}> 44 {content} 45 </span> 46 </div> 47 ); 48}