import VotesCount from "src/Components/VotesCount/VotesCount" import { Question } from "src/features/Posts/types" import Header from "../Header/Header" import { FiUsers } from "react-icons/fi" import Badge from "src/Components/Badge/Badge" import { Link } from "react-router-dom" export type QuestionCardType = Pick; interface Props { question: QuestionCardType } export default function QuestionCard({ question }: Props) { return (
{/* */}

{question.title}

{question.excerpt}

Help {question.tags.map(tag => {tag.title} )}

{question.answers_count} Answers
{question.comments.map(comment =>

{comment.body}

)}
See all {question.answers_count} comments
) }