import { useEffect, useState } from "react"; import { NavLink, Link } from "react-router"; type CardProps = { title: string; description: string; timestamp: number; contributor: string; uuid: string; filepath: string; }; export const Card = ({ title, description, timestamp, contributor, uuid, filepath, }: CardProps) => { const [showMenu, setShowMenu] = useState(false); console.log(filepath); return (

{title}

submitted {timestamp} by{" "} {contributor}

Description: {description}


like

setShowMenu(!showMenu)} >

menu

{showMenu && ( <>

edit

mark as posted

)}
); };