Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 24 lines 694 B view raw
1import { memo } from "react"; 2import { H2 } from "@/components/Shared/UI"; 3 4interface PageHeaderProps { 5 title: string; 6 updatedAt?: string; 7} 8 9const PageHeader = ({ title, updatedAt }: PageHeaderProps) => ( 10 <div className="flex h-48 w-full items-center justify-center rounded-none bg-gray-400 md:rounded-xl"> 11 <div className="relative text-center"> 12 <H2 className="text-white">{title}</H2> 13 {updatedAt ? ( 14 <div className="mt-4 flex justify-center"> 15 <div className="rounded-md bg-gray-800 px-2 py-0.5 text-white text-xs"> 16 Updated {updatedAt} 17 </div> 18 </div> 19 ) : null} 20 </div> 21 </div> 22); 23 24export default memo(PageHeader);