This update includes creating new files for the notifications feature along with adding two feature flags for enabling notifications and realtime notifications. All the code and package dependencies required for the notifications functionality have been added. The 'pnpm-lock.yaml' has also been updated due to the inclusion of new package dependencies.
31 lines
763 B
TypeScript
31 lines
763 B
TypeScript
import { PageHeader } from '@kit/ui/page';
|
|
|
|
import { AccountNotifications } from '~/(dashboard)/home/[account]/_components/account-notifications';
|
|
|
|
import { AccountLayoutMobileNavigation } from './account-layout-mobile-navigation';
|
|
|
|
export function AccountLayoutHeader({
|
|
children,
|
|
title,
|
|
description,
|
|
account,
|
|
}: React.PropsWithChildren<{
|
|
title: string | React.ReactNode;
|
|
description?: string | React.ReactNode;
|
|
account: string;
|
|
}>) {
|
|
return (
|
|
<PageHeader
|
|
title={title}
|
|
description={description}
|
|
mobileNavigation={<AccountLayoutMobileNavigation account={account} />}
|
|
>
|
|
<div className={'flex space-x-4'}>
|
|
{children}
|
|
|
|
<AccountNotifications accountId={account} />
|
|
</div>
|
|
</PageHeader>
|
|
);
|
|
}
|