# All files / src/components/organisms/showcases DataTablesShowcase.tsx

0% Statements 0/79
0% Branches 0/1
0% Functions 0/1
0% Lines 0/79

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80

     import { Card } from '@/components/ui/card'
    import { Button } from '@/components/ui/button'
    import { Badge } from '@/components/ui/badge'
    import {
      Table,
      TableBody,
      TableCell,
      TableHead,
      TableHeader,
      TableRow,
    } from '@/components/ui/table'

    export function DataTablesShowcase() {
      return (
        <section className="space-y-6">
          <div>
            <h2 className="text-3xl font-bold mb-2">Data Tables</h2>
            <p className="text-muted-foreground">
              Structured data display with actions
            </p>
          </div>

          <Card>
            <div className="p-4 border-b border-border">
              <div className="flex items-center justify-between">
                <h3 className="font-semibold text-lg">Recent Transactions</h3>
                <Button variant="outline" size="sm">
                  Export
                </Button>
              </div>
            </div>
            <Table>
              <TableHeader>
                <TableRow>
                  <TableHead>Status</TableHead>
                  <TableHead>Transaction</TableHead>
                  <TableHead>Date</TableHead>
                  <TableHead className="text-right">Amount</TableHead>
                </TableRow>
              </TableHeader>
              <TableBody>
                <TableRow>
                  <TableCell>
                    <Badge>Completed</Badge>
                  </TableCell>
                  <TableCell className="font-medium">Payment received</TableCell>
                  <TableCell>Mar 15, 2024</TableCell>
                  <TableCell className="text-right">$250.00</TableCell>
                </TableRow>
                <TableRow>
                  <TableCell>
                    <Badge variant="secondary">Pending</Badge>
                  </TableCell>
                  <TableCell className="font-medium">Processing payment</TableCell>
                  <TableCell>Mar 14, 2024</TableCell>
                  <TableCell className="text-right">$150.00</TableCell>
                </TableRow>
                <TableRow>
                  <TableCell>
                    <Badge>Completed</Badge>
                  </TableCell>
                  <TableCell className="font-medium">Refund issued</TableCell>
                  <TableCell>Mar 13, 2024</TableCell>
                  <TableCell className="text-right text-destructive">-$75.00</TableCell>
                </TableRow>
                <TableRow>
                  <TableCell>
                    <Badge variant="destructive">Failed</Badge>
                  </TableCell>
                  <TableCell className="font-medium">Payment declined</TableCell>
                  <TableCell>Mar 12, 2024</TableCell>
                  <TableCell className="text-right">$0.00</TableCell>
                </TableRow>
              </TableBody>
            </Table>
          </Card>
        </section>
      )
    }