import * as React from "react"; import Svg, { Defs, G, Path, Circle, Rect, Use, Text, Image, } from "react-native-svg"; import { type QrTemplateProps, getFontFamily, renderSvgLines } from "./common"; const QrTemplate6 = ({ qrBase64, fields, hideQr, ...props }: QrTemplateProps) => { const rName = fields?.restaurantName; const sub = fields?.subtitle; const table = fields?.tableNo; const cta = fields?.ctaText; const wifi = fields?.wifiText; const social = fields?.socialText; const rNameFont = getFontFamily(rName?.fontId, "Georgia, 'Times New Roman', serif"); const subFont = getFontFamily(sub?.fontId, "System, -apple-system, Roboto, sans-serif"); const ctaFont = getFontFamily(cta?.fontId, "Georgia, 'Times New Roman', serif"); const infoFont = getFontFamily(wifi?.fontId, "System, -apple-system, Roboto, sans-serif"); return ( {/* QR Placeholder / Gerçek QR */} {!hideQr && ( {qrBase64 ? ( ) : ( <> {"QR KOD ALANI"} )} )} {/* Metinler */} {/* Masa Numarası */} {table?.visible !== false && renderSvgLines({ text: table?.text || "MASA NO: 01", x: 200, y: 36, offsetY: table?.offsetY, fill: "#122a42", fontFamily: infoFont, fontSize: table?.fontSize || 10, fontWeight: "bold", letterSpacing: 1.5, })} {/* Restoran Başlığı */} {rName?.visible !== false && renderSvgLines({ text: rName?.text || "THE STONEHEARTH GRILL", x: 200, y: 84, offsetY: rName?.offsetY, fill: "#a64423", fontFamily: rNameFont, fontSize: rName?.fontSize || 19, fontWeight: "bold", letterSpacing: 1.5, })} {/* Slogan */} {sub?.visible !== false && renderSvgLines({ text: sub?.text || "SCAN. ORDER. ENJOY.", x: 200, y: 118, offsetY: sub?.offsetY, fill: "#122a42", fontFamily: subFont, fontSize: sub?.fontSize || 10, fontWeight: "bold", letterSpacing: 2, })} {/* CTA */} {cta?.visible !== false && renderSvgLines({ text: cta?.text || "VIEW OUR MENU & ORDER ONLINE", x: 200, y: 160, offsetY: cta?.offsetY, fill: "#122a42", fontFamily: ctaFont, fontSize: cta?.fontSize || 13, fontWeight: "bold", letterSpacing: 0.5, })} {/* WiFi */} {wifi?.visible !== false && renderSvgLines({ text: wifi?.text || "FREE WIFI: StonehearthGuest | PW: Grill720", x: 200, y: 524, offsetY: wifi?.offsetY, fill: "#222", fontFamily: infoFont, fontSize: wifi?.fontSize || 9, fontWeight: "bold", letterSpacing: 0.2, })} {/* Sosyal Medya */} {social?.visible !== false && renderSvgLines({ text: social?.text || "Follow Us @StonehearthGrill", x: 200, y: 540, offsetY: social?.offsetY, fill: "#222", fontFamily: infoFont, fontSize: social?.fontSize || 9, fontWeight: "bold", letterSpacing: 0.2, })} ); }; export default QrTemplate6;