Files
myeasycms-v2/apps/web/app/home/[account]/_components/team-account-notifications.tsx
Giancarlo Buomprisco 5e8e01e340 New Layout (#22)
New layout
2024-04-30 22:54:33 +07:00

20 lines
464 B
TypeScript

import { NotificationsPopover } from '@kit/notifications/components';
import featuresFlagConfig from '~/config/feature-flags.config';
export function TeamAccountNotifications(params: {
userId: string;
accountId: string;
}) {
if (!featuresFlagConfig.enableNotifications) {
return null;
}
return (
<NotificationsPopover
accountIds={[params.userId, params.accountId]}
realtime={featuresFlagConfig.realtimeNotifications}
/>
);
}