x
This commit is contained in:
1 parent
52a5217d9b
commit
752451b1d4
2 files changed
+210
-67
No files matched your search
@@ -2,25 +2,38 @@ import { create } from 'zustand';
|
||||
import { API_BASE } from '@homaroma/types';
|
||||
|
||||
export interface MenuLink {
|
||||
label: Record<string, string>;
|
||||
label: Record<string, string> | string;
|
||||
url?: string;
|
||||
links?: MenuLink[];
|
||||
imageUrl?: string | null; // รูปที่แสดงเมื่อ Hover ลิงก์
|
||||
}
|
||||
|
||||
export interface MenuColumn {
|
||||
title: Record<string, string>;
|
||||
title: Record<string, string> | string;
|
||||
links: MenuLink[];
|
||||
iconUrl?: string | null; // รูปประจำคอลัมน์ (1:1)
|
||||
}
|
||||
|
||||
export interface MenuFeaturedCard {
|
||||
enabled?: boolean;
|
||||
sectionTitle?: Record<string, string> | string;
|
||||
badge?: Record<string, string> | string;
|
||||
title?: Record<string, string> | string;
|
||||
subtitle?: Record<string, string> | string;
|
||||
price?: string;
|
||||
imageUrl?: string | null;
|
||||
url?: string;
|
||||
ctaLabel?: Record<string, string> | string;
|
||||
}
|
||||
|
||||
export interface MegaMenuPayload {
|
||||
id?: string;
|
||||
nodeId?: string;
|
||||
label: Record<string, string>;
|
||||
label: Record<string, string> | string;
|
||||
url?: string;
|
||||
columns?: MenuColumn[];
|
||||
rootImageUrl?: string | null; // รูปหลักฝั่งซ้ายสุด (1:1)
|
||||
featured?: MenuFeaturedCard;
|
||||
}
|
||||
|
||||
interface MenuState {
|
||||
|
||||
Reference in new issue
Block a user