43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
import { AppLogo } from '~/components/app-logo';
|
|
import { ProfileAccountDropdownContainer } from '~/components/personal-account-dropdown-container';
|
|
import { Trans } from '@kit/ui/trans';
|
|
|
|
// home imports
|
|
import { UserNotifications } from '../_components/user-notifications';
|
|
import { type UserWorkspace } from '../_lib/server/load-user-workspace';
|
|
import { Button } from '@kit/ui/button';
|
|
import { ShoppingCart } from 'lucide-react';
|
|
|
|
export function HomeMenuNavigation(props: { workspace: UserWorkspace }) {
|
|
const { workspace, user, accounts } = props.workspace;
|
|
console.log('HomeMenuNavigation', accounts)
|
|
return (
|
|
<div className={'flex w-full flex-1 justify-between'}>
|
|
<div className={'flex items-center space-x-8'}>
|
|
<AppLogo />
|
|
|
|
</div>
|
|
{/* searbar */}
|
|
<div className={'flex justify-end space-x-2.5 gap-2 items-center'}>
|
|
{/* TODO: implement account budget */}
|
|
<Button className='relative px-4 py-2 h-10 border-1 mr-0 cursor-pointer' variant={'ghost'}>
|
|
<span className='flex items-center text-nowrap'>€ 231,89</span>
|
|
</Button>
|
|
{/* TODO: implement cart */}
|
|
<Button className='relative px-4 py-2 h-10 border-1 mr-0 cursor-pointer gap-2' variant={'ghost'}>
|
|
<ShoppingCart size={16} />
|
|
|
|
<Trans i18nKey="billing:cart.label" values={{ items: 0 }}/>
|
|
</Button>
|
|
<UserNotifications userId={user.id} />
|
|
<ProfileAccountDropdownContainer
|
|
user={user}
|
|
account={workspace}
|
|
accounts={accounts}
|
|
showProfileName={true}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|