22 lines
1.4 KiB
TypeScript
22 lines
1.4 KiB
TypeScript
import { getBeachSettings } from "@/app/actions/beach";
|
||
import BeachClient from "@/components/admin/BeachClient";
|
||
|
||
export const dynamic = "force-dynamic";
|
||
|
||
export default async function BeachPage() {
|
||
const result = await getBeachSettings();
|
||
|
||
// result.data will always be populated if success because we upsert "default"
|
||
const settings = result.success && result.data ? result.data : {
|
||
title: "Ayrıcalıklı Bir Gevşeme Alanı",
|
||
description: "Tertemiz sularla buluşan özel plajımız, kendinizi tamamen yenileyebilmeniz için rahatlığın merkezinde. Altın kumların ve berrak denizin tadını çıkarırken, dünya standartlarındaki hizmetimizle her anınızın özel hissettirmesini sağlıyoruz.",
|
||
reservationInfo: "VIP cabana ve ön sıra şezlonglar yoğun talep görmektedir. Yeriniz garantilemek için en az bir gün önceden bizimle iletişime geçmenizi öneririz.",
|
||
image1: "https://images.unsplash.com/photo-1544148103-0773bf10d330?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
|
||
image2: "https://images.unsplash.com/photo-1519046904884-53103b34b206?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
|
||
image3: "https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
|
||
image4: "https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
|
||
};
|
||
|
||
return <BeachClient settings={settings as any} />;
|
||
}
|