/* Enfito — Icons & Shared Components */ const Icon = { Search: (props) => ( ), ArrowRight: (props) => ( ), ArrowUpRight: (props) => ( ), ChevronDown: (props) => ( ), ChevronLeft: (props) => ( ), Heart: ({filled, ...p}) => ( ), Bag: (props) => ( ), User: (props) => ( ), Plus: (props) => ( ), Minus: (props) => ( ), X: (props) => ( ), Check: (props) => ( ), Truck: (props) => ( ), Shield: (props) => ( ), Return: (props) => ( ), Sparkle: (props) => ( ), Card: (props) => ( ), Star: (props) => ( ), Menu: (props) => ( ), Globe: (props) => ( ), Filter: (props) => ( ), Dumbbell: (props) => ( ), Yoga: (props) => ( ), Heartbeat: (props) => ( ), Award: (props) => ( ), Tag: (props) => ( ), Sun: (props) => ( ), Recover: (props) => ( ), }; window.Icon = Icon; /* ============ HEADER ============ */ const Header = ({ cartCount, onNav, currentRoute }) => { const [searchOpen, setSearchOpen] = React.useState(false); return (
უფასო მიწოდება ₾200+ შეკვეთაზე 30 დღიანი დაბრუნება ოფიციალური წარმომადგენელი
onNav({ page: 'home' })}> Enfito
ყველა კატეგორია
); }; /* ============ PRODUCT CARD ============ */ const ProductCard = ({ p, onNav, onAdd, onFav, faved }) => { return (
onNav({ page: 'pdp', id: p.id })}>
{p.img && {p.name}} {p.tag && {p.tag}} {!p.img && {p.name}} {!p.img && {p.brand}}
{p.brand}
{p.name}
{window.ENFITO_FMT_PRICE(p.price)} {p.old && {window.ENFITO_FMT_PRICE(p.old)}}
); }; /* ============ FOOTER ============ */ const Footer = () => ( ); /* ============ TOAST ============ */ const Toast = ({ msg, show }) => (
{msg}
); Object.assign(window, { Header, ProductCard, Footer, Toast });