"use client"; import React, { useState, useEffect } from "react"; import { Search, Sparkles, Plus, Dices, Feather, Clock } from "lucide-react"; interface HeaderProps { searchQuery: string; onSearchChange: (q: string) => void; onNewPostClick: () => void; onRandomPostClick: () => void; postCount: number; } export const Header: React.FC = ({ searchQuery, onSearchChange, onNewPostClick, onRandomPostClick, postCount, }) => { const [timeString, setTimeString] = useState("16:20"); useEffect(() => { const updateTime = () => { const now = new Date(); setTimeString( now.toLocaleTimeString("tr-TR", { hour: "2-digit", minute: "2-digit", }) ); }; updateTime(); const timer = setInterval(updateTime, 30000); return () => clearInterval(timer); }, []); return (
{/* Brand & Identity */}
M
mstfyldz v1.0 log

Mustafa Yıldız • Kişisel Karalama & Mood Defteri

{/* Mobile CTAs */}
{/* Telemetry & Search & Actions */}
{/* Live Telemetry Pill */}
Muğla, TR
{timeString}
{postCount} Not Kayıtlı
{/* Search Box */}
onSearchChange(e.target.value)} placeholder="Defterde ara..." className="w-full pl-8 pr-3 py-1.5 text-xs bg-white/70 border border-[#18181B]/15 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#E11D48]/30 focus:border-[#E11D48] transition-all placeholder:text-[#A6ABB5] font-serif" /> {searchQuery && ( )}
{/* Desktop Actions */}
); };