import { Icon, Row, Text } from '@umami/react-zen'; import { WebsiteShareForm } from '@/app/(main)/websites/[websiteId]/settings/WebsiteShareForm'; import { Favicon } from '@/components/common/Favicon'; import { LinkButton } from '@/components/common/LinkButton'; import { PageHeader } from '@/components/common/PageHeader'; import { useMessages, useNavigation, useWebsite } from '@/components/hooks'; import { Edit, Share } from '@/components/icons'; import { DialogButton } from '@/components/input/DialogButton'; import { ActiveUsers } from '@/components/metrics/ActiveUsers'; export function WebsiteHeader({ showActions }: { showActions?: boolean }) { const website = useWebsite(); const { renderUrl, pathname } = useNavigation(); const isSettings = pathname.endsWith('/settings'); if (isSettings) { return null; } return ( } marginBottom="3"> {showActions && ( Edit )} ); } const ShareButton = ({ websiteId, shareId }) => { const { formatMessage, labels } = useMessages(); return ( } label={formatMessage(labels.share)} width="800px"> {({ close }) => { return ; }} ); };