import { Link } from 'react-router-dom' import { Column, Table, TableBody, TableCell, TableHeader, TableRow, Typography, } from '@/components' import { Deck } from '@/services/decks' import { formatDate } from '@/utils' const columns: Column[] = [ { key: 'name', title: 'Name', }, { key: 'cardsCount', title: 'Cards', }, { key: 'updated', title: 'Last Updated', }, { key: 'author', title: 'Created By', }, { key: 'actions', title: '', }, ] type Props = { decks: Deck[] | undefined } export const DecksTable = ({ decks }: Props) => { return (