import React from "react"; import Image from "next/image"; import { useImageProxy } from "@/hooks/useImageProxy"; import { Button } from "primereact/button"; import { formatUnixTimestamp } from "@/utils/time"; const ContentDropdownItem = ({ content, onSelect, selected }) => { const { returnImageProxy } = useImageProxy(); if (selected) { return (
content thumbnail
{content.title}
{content.summary}
{content.published_at ? formatUnixTimestamp(content.published_at) : "not yet published"}
); } return (
content thumbnail
{content.title}
{content.summary}
{content.published_at ? formatUnixTimestamp(content.published_at) : "not yet published"}
); }; export default ContentDropdownItem;