Spaces:
Sleeping
Sleeping
File size: 1,459 Bytes
0ef5c60 |
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 |
import React from 'react';
import { Button } from './ui/button';
import { X, BookOpen } from 'lucide-react';
interface ReviewBannerProps {
onReview: () => void;
onDismiss: () => void;
}
export function ReviewBanner({ onReview, onDismiss }: ReviewBannerProps) {
return (
<div className="mx-4 my-2 p-4 bg-primary/10">
<div className="flex items-center justify-between gap-4">
<div className="flex items-center gap-3 flex-1">
<div className="flex-shrink-0">
<BookOpen className="h-5 w-5 text-primary" />
</div>
<div className="flex-1">
<p className="text-sm font-medium text-foreground">
Time to review! 📚
</p>
<p className="text-xs text-muted-foreground mt-1">
You have topics that need your attention. Review them to strengthen your learning.
</p>
</div>
</div>
<div className="flex items-center gap-2 flex-shrink-0">
<Button
size="sm"
onClick={onReview}
className="bg-red-500 hover:bg-red-600 text-white"
>
Review
</Button>
<Button
variant="ghost"
size="icon"
onClick={onDismiss}
className="h-8 w-8"
aria-label="Dismiss"
>
<X className="h-4 w-4" />
</Button>
</div>
</div>
</div>
);
}
|