diff --git a/src/components/IssueFeed.tsx b/src/components/IssueFeed.tsx new file mode 100644 index 0000000..e39d19c --- /dev/null +++ b/src/components/IssueFeed.tsx @@ -0,0 +1,53 @@ +import BountyCard from './BountyCard'; + +interface Issue { + id: number; + number: number; + title: string; + description?: string; + bountyAmount: number; + tokenType: string; + deadline: string; + status: 'open' | 'in-progress' | 'completed' | 'expired'; + labels: string[]; +} + +interface IssueFeedProps { + issues: Issue[]; + loading?: boolean; +} + +export default function IssueFeed({ issues, loading = false }: IssueFeedProps) { + if (loading) { + return ( +
+ Loading issues... +
+ ); + } + + if (issues.length === 0) { + return ( +
+ No issues found. +
+ ); + } + + return ( +
+

Open Bounties

+ {issues.map((issue) => ( + + ))} +
+ ); +} \ No newline at end of file