import { Badge, BadgeProps, Box, Card, Heading, Icon, Link, Stack, Text } from '@chakra-ui/react'; import { WorkingProgressStatus } from '@generated/types'; import { ReactNode } from 'react'; 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} ); } export function IconBadge({ children, iconClass, backgroundColor, size = 'lg' }: { children?: ReactNode; iconClass: string; backgroundColor?: BadgeProps['backgroundColor']; size?: 'sm' | 'md' | 'lg' | 'xs'; }) { return ( {children} ); }