fix(ui): make the shared three-part profile the canonical header

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 13:02:56 +03:00
parent fdc93a3136
commit 55fa5fa6bc
7 changed files with 34 additions and 17 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
import type { ButtonHTMLAttributes, ReactNode } from "react";
import type { ButtonHTMLAttributes, ReactNode, Ref } from "react";
export interface AppHeaderProps {
brand: ReactNode;
@@ -74,10 +74,11 @@ export function HeaderNavigation<T extends string>({ label, value, items, onChan
export interface HeaderProfileProps {
children: ReactNode;
ref?: Ref<HTMLDivElement>;
}
export function HeaderProfile({ children }: HeaderProfileProps) {
return <div className="nodedc-header__profile">{children}</div>;
export function HeaderProfile({ children, ref }: HeaderProfileProps) {
return <div ref={ref} className="nodedc-header__profile">{children}</div>;
}
export interface HeaderProfileButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style"> {}