"use client";
import React from "react";
import { TenantContext } from "../../middleware/multi-tenant";
import { Site } from "../../services/site-api";
interface TenantSiteRendererProps {
site: Site;
tenantContext: TenantContext;
}
export function TenantSiteRenderer({
site,
tenantContext,
}: TenantSiteRendererProps) {
return (
{/* 사이트 헤더 */}
{site.name}
{tenantContext.domain || `${tenantContext.subdomain}.site.com`}
{/* 메인 콘텐츠 */}
{/* Hero Section */}
Welcome to {site.name}
{site.description && (
{site.description}
)}
{/* 섹션들 렌더링 */}
{/* About Section */}
About Our Service
We provide innovative solutions to help your business grow and
succeed in the digital age.
Fast Performance
Lightning fast loading times and optimized performance.
Reliable Service
99.9% uptime guarantee with 24/7 monitoring.
Secure & Safe
Enterprise-grade security with data encryption.
{/* Contact Section */}
Get In Touch
Ready to get started? Contact us today!
{/* Footer */}
);
}