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; isAdmin: boolean; index?: number; } export default function Card(props: CardProps) { return (
{props.post.total_comments || 0} Comments
{props.post.total_likes || 0} Likes