// This is a Server Component by default
import ServerWord from "@/zoom/ServerWord";
import TriggerModalButton from "./trigger-modal-button"; // We'll make this a client component to manage state

export default function SomePage() {
  const productIdForModal = "123"; // Or get this dynamically

  return (
    <div>
      {/*
        The TriggerModalButton will manage the modal's open/close state.
        It will receive the Server Component as a child to pass to ClientModal.
      */}
      <TriggerModalButton
        modalTitle={`Product Details for ID: ${productIdForModal}`}
      >
        <ServerWord word={"fantastic"} lang={"en"} />
      </TriggerModalButton>
    </div>
  );
}
