import { Badge, Box, Card, Heading, Link, Stack, Text } from '@chakra-ui/react'; import { WorkingProgressStatus } from '@generated/types'; import { IconBadge } from './IconBadge'; import { WorkingProgressStatusBadge } from './WorkingProgressStatusBadge'; import { WorkingRatingBadge } from './WorkingRatingBadge'; export interface WorkingCardProps { id: string; title: string; description: string; author: { id: string; username: string }; progressStatus: WorkingProgressStatus; updatedAt: string; chaptersTotal: number; wordsTotal: number; ratingTotal: number; reviewsTotal: number; } export function WorkingListCard({ title, description, author, progressStatus, updatedAt, chaptersTotal, wordsTotal, ratingTotal, reviewsTotal }: WorkingCardProps) { return ( {title} {reviewsTotal} by: {author.username} last updated: {updatedAt} chapters: {chaptersTotal} words: {wordsTotal} {description} ); }