| 1 | import { ChevronLeft } from "lucide-react"; |
| 2 | import { Button } from "@/components/ui/button"; |
| 3 | |
| 4 | interface MobilePostsHeaderProps { |
| 5 | feedTitle: string; |
| 6 | onBack: () => void; |
| 7 | } |
| 8 | |
| 9 | export function MobilePostsHeader({ |
| 10 | feedTitle, |
| 11 | onBack, |
| 12 | }: MobilePostsHeaderProps) { |
| 13 | return ( |
| 14 | <div className="flex items-center gap-2 px-2 pt-2"> |
| 15 | <Button |
| 16 | variant="ghost" |
| 17 | size="sm" |
| 18 | onClick={onBack} |
| 19 | className="h-8 w-8 p-0" |
| 20 | > |
| 21 | <ChevronLeft className="size-5" /> |
| 22 | </Button> |
| 23 | <div className="flex-1 text-left text-lg truncate"> |
| 24 | <span className="font-bold">{feedTitle}</span> |
| 25 | </div> |
| 26 | </div> |
| 27 | ); |
| 28 | } |