import { Show, lazy } from "solid-js"; import CardLinks from "./CardLinks"; import { Fire } from "~/components/icons/Fire"; import { PostCardData } from "~/db/types"; const DeletePostButton = lazy(() => import("./DeletePostButton")); export interface CardProps { post: PostCardData; privilegeLevel: "anonymous" | "admin" | "user"; index?: number; } export default function Card(props: CardProps) { return (
{props.post.total_comments || 0} Comments
{props.post.total_likes || 0} Likes