34 lines
810 B
TypeScript
34 lines
810 B
TypeScript
import {
|
|
IconBrandFacebook,
|
|
IconBrandInstagram,
|
|
IconBrandLinkedin,
|
|
IconBrandTelegram,
|
|
IconBrandTiktok,
|
|
IconBrandX,
|
|
IconBrandYoutube,
|
|
IconLink,
|
|
IconMail,
|
|
IconPhone,
|
|
type Icon as TablerIcon,
|
|
} from "@tabler/icons-react";
|
|
|
|
/** ไอคอนที่เลือกใช้ได้ใน footer — เพิ่มชื่อใหม่ได้โดยเติมใน map นี้ */
|
|
export const FOOTER_ICONS: Record<string, TablerIcon> = {
|
|
IconBrandFacebook,
|
|
IconBrandInstagram,
|
|
IconBrandLinkedin,
|
|
IconBrandYoutube,
|
|
IconBrandTelegram,
|
|
IconBrandTiktok,
|
|
IconBrandX,
|
|
IconMail,
|
|
IconPhone,
|
|
IconLink,
|
|
};
|
|
|
|
export const FOOTER_ICON_NAMES = Object.keys(FOOTER_ICONS);
|
|
|
|
export function footerIcon(name: string): TablerIcon {
|
|
return FOOTER_ICONS[name] ?? IconLink;
|
|
}
|