mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-11-02 22:04:20 +00:00
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { useDataroom } from "@/lib/swr/use-dataroom";
|
|
|
|
import { DataroomHeader } from "@/components/datarooms/dataroom-header";
|
|
import { DataroomNavigation } from "@/components/datarooms/dataroom-navigation";
|
|
import IntroductionSettings from "@/components/datarooms/settings/introduction-settings";
|
|
import SettingsTabs from "@/components/datarooms/settings/settings-tabs";
|
|
import AppLayout from "@/components/layouts/app";
|
|
|
|
export default function Introduction() {
|
|
const { dataroom } = useDataroom();
|
|
|
|
if (!dataroom) {
|
|
return <div>Loading...</div>;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<div className="relative mx-2 mb-10 mt-4 space-y-8 overflow-hidden px-1 sm:mx-3 md:mx-5 md:mt-5 lg:mx-7 lg:mt-8 xl:mx-10">
|
|
<header>
|
|
<DataroomHeader
|
|
title={dataroom.name}
|
|
description={dataroom.pId}
|
|
internalName={dataroom.internalName}
|
|
actions={[]}
|
|
/>
|
|
|
|
<DataroomNavigation dataroomId={dataroom.id} />
|
|
</header>
|
|
|
|
{/* Settings */}
|
|
<div className="mx-auto grid w-full gap-2">
|
|
<h1 className="text-2xl font-semibold">Settings</h1>
|
|
</div>
|
|
<div className="mx-auto grid w-full items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]">
|
|
<SettingsTabs dataroomId={dataroom.id} />
|
|
<div className="grid gap-6">
|
|
<IntroductionSettings dataroomId={dataroom.id} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</AppLayout>
|
|
);
|
|
}
|