- HeaderConfig gains sticky (default true) and layout ('default'|'centered')
- header editor exposes layout select + sticky toggle
- runtime header component applies static/centered classes from config
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
30 lines
646 B
TypeScript
30 lines
646 B
TypeScript
export type HeaderLayout = 'default' | 'centered';
|
|
|
|
export interface HeaderConfig {
|
|
showLogo?: boolean;
|
|
showSearch?: boolean;
|
|
showCategories?: boolean;
|
|
showLanguages?: boolean;
|
|
showCart?: boolean;
|
|
showProfile?: boolean;
|
|
showWishlist?: boolean;
|
|
showCompare?: boolean;
|
|
showRegion?: boolean;
|
|
sticky?: boolean;
|
|
layout?: HeaderLayout;
|
|
}
|
|
|
|
export const DEFAULT_HEADER_CONFIG: Required<HeaderConfig> = {
|
|
showLogo: true,
|
|
showSearch: true,
|
|
showCategories: true,
|
|
showLanguages: true,
|
|
showCart: true,
|
|
showProfile: false,
|
|
showWishlist: true,
|
|
showCompare: true,
|
|
showRegion: true,
|
|
sticky: true,
|
|
layout: 'default',
|
|
};
|