| 1 | import { ClipboardList, FileText } from 'lucide-react' |
| 2 | import Link from 'next/link |
| 3 | |
| 4 | import { Badge } |
| 5 | import { Card, CardContent |
| 6 | import type { RouteImpl |
| 7 | |
| 8 | interface Requirement { |
| 9 | id: string |
| 10 | slug: string |
| 11 | title: string |
| 12 | } |
| 13 | interface Proposal { |
| 14 | id: string |
| 15 | slug: string |
| 16 | title: string |
| 17 | } |
| 18 | |
| 19 | export function RequirementsAwaitingSignatureCard({ |
| 20 | requirements, |
| 21 | basePath, |
| 22 | }: { |
| 23 | requirements: Requirement |
| 24 | basePath: string |
| 25 | }) { |
| 26 | return ( |
| 27 | <Card> |
| 28 | <CardHeader className=' |
| 29 | <CardTitle className=' |
| 30 | <ClipboardList className=' |
| 31 | Awaiting Signature |
| 32 | </CardTitle> |
| 33 | <Link |
| 34 | className='text-muted-foreground text-xs hover:text-foreground' |
| 35 | href={`${basePath |
| 36 | > |
| 37 | View all |
| 38 | </Link> |
| 39 | </CardHeader> |
| 40 | <CardContent className=' |
| 41 | {requirements.slice(0 |
| 42 | <Link |
| 43 | className='flex items-center justify-between rounded-lg border border-border p-3 transition-colors hover:bg-muted/50' |
| 44 | href={`${basePath |
| 45 | key={r.id |
| 46 | > |
| 47 | <span className='truncate font-medium text-sm |
| 48 | <Badge variant=' |
| 49 | </Link> |
| 50 | ))} |
| 51 | </CardContent> |
| 52 | </Card> |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | export function ProposalsPendingCard({ |
| 57 | proposals, |
| 58 | basePath, |
| 59 | }: { |
| 60 | proposals: Proposal |
| 61 | basePath: string |
| 62 | }) { |
| 63 | return ( |
| 64 | <Card> |
| 65 | <CardHeader className=' |
| 66 | <CardTitle className=' |
| 67 | <FileText className=' |
| 68 | Proposals Pending |
| 69 | </CardTitle> |
| 70 | <Link |
| 71 | className='text-muted-foreground text-xs hover:text-foreground' |
| 72 | href={`${basePath |
| 73 | > |
| 74 | View all |
| 75 | </Link> |
| 76 | </CardHeader> |
| 77 | <CardContent className=' |
| 78 | {proposals.slice(0 |
| 79 | <Link |
| 80 | className='flex items-center justify-between rounded-lg border border-border p-3 transition-colors hover:bg-muted/50' |
| 81 | href={`${basePath |
| 82 | key={p.id |
| 83 | > |
| 84 | <span className='truncate font-medium text-sm |
| 85 | <Badge variant=' |
| 86 | </Link> |
| 87 | ))} |
| 88 | </CardContent> |
| 89 | </Card> |
| 90 | ) |
| 91 | } |