25 lines
545 B
TypeScript
25 lines
545 B
TypeScript
import { MobileAppNavigation } from '~/(dashboard)/home/[account]/(components)/mobile-app-navigation';
|
|
|
|
import { PageHeader } from '@kit/ui/page';
|
|
|
|
export function AppHeader({
|
|
children,
|
|
title,
|
|
description,
|
|
account,
|
|
}: React.PropsWithChildren<{
|
|
title: string | React.ReactNode;
|
|
description?: string | React.ReactNode;
|
|
account: string;
|
|
}>) {
|
|
return (
|
|
<PageHeader
|
|
title={title}
|
|
description={description}
|
|
mobileNavigation={<MobileAppNavigation slug={account} />}
|
|
>
|
|
{children}
|
|
</PageHeader>
|
|
);
|
|
}
|