import React from "react"; import type { Config } from "@measured/puck"; import BookingWidget from "./components/booking/BookingWidget"; import { ArrowRight } from "lucide-react"; type Props = { Hero: { title: string; subtitle: string; align: "left" | "center" | "right"; ctaText?: string; ctaLink?: string; }; TextSection: { heading: string; body: string }; Booking: { headline: string; subheading: string }; }; export const config: Config = { components: { Hero: { fields: { title: { type: "text" }, subtitle: { type: "text" }, align: { type: "radio", options: [ { label: "Left", value: "left" }, { label: "Center", value: "center" }, { label: "Right", value: "right" }, ], }, ctaText: { type: "text", label: "Button Text" }, ctaLink: { type: "text", label: "Button Link" }, }, defaultProps: { title: "Welcome to our site", subtitle: "We provide great services", align: "center", ctaText: "Book Now", ctaLink: "/book", }, render: ({ title, subtitle, align, ctaText, ctaLink }) => (

{title}

{subtitle}

{ctaText && ctaLink && ( {ctaText} )}
), }, TextSection: { fields: { heading: { type: "text" }, body: { type: "textarea" }, }, defaultProps: { heading: "About Us", body: "Enter your text here...", }, render: ({ heading, body }) => (

{heading}

{body}
), }, Booking: { fields: { headline: { type: "text" }, subheading: { type: "text" }, }, defaultProps: { headline: "Schedule Your Appointment", subheading: "Choose a service and time that works for you", }, render: ({ headline, subheading }) => (

{headline}

{subheading}

), }, }, };