Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

624 B
Raw Blame
'use client';

import { Flexbox, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';

export interface ShareHeroProps {
  avatar?: ReactNode;
  byline?: ReactNode;
  title?: string | null;
}

export const ShareHero = ({ avatar, byline, title }: ShareHeroProps) => (
  <Flexbox gap={8} paddingBlock={'calc(24px + var(--share-header-overlap, 0px)) 16px'}>
    {avatar}
    {title && (
      <Text as={'h1'} fontSize={24} style={{ margin: 0 }} weight={700}>
        {title}
      </Text>
    )}
    {byline && (
      <Text fontSize={12} type={'secondary'}>
        {byline}
      </Text>
    )}
  </Flexbox>
);