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 (
Not Published
{props.post.title.replaceAll("_",
{props.post.title.replaceAll("_", " ")}
{props.post.subtitle}
{props.post.reads || 0} Hits

{props.post.total_comments || 0} Comments

{props.post.total_likes || 0} Likes

); }