mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-20 11:22:55 -05:00
* build and integrate feedback widget on formbricks-com Co-authored-by: knugget <johannes@knugget.de>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import FeedbackButton from "./FeedbackButton";
|
|
import Footer from "./Footer";
|
|
import Header from "./Header";
|
|
import Layout from "./Layout";
|
|
import MetaInformation from "./MetaInformation";
|
|
import { Prose } from "./Prose";
|
|
|
|
interface Props {
|
|
meta: {
|
|
title: string;
|
|
description: string;
|
|
};
|
|
children: JSX.Element;
|
|
}
|
|
|
|
export default function LayoutMdx({ meta, children }: Props) {
|
|
return (
|
|
<div className="flex h-screen flex-col justify-between">
|
|
<MetaInformation title={meta.title} description={meta.description} />
|
|
<Header />
|
|
<FeedbackButton />
|
|
<main className="min-w-0 max-w-2xl flex-auto px-4 lg:max-w-none lg:pr-0 lg:pl-8 xl:px-16">
|
|
<article className="mx-auto my-16 max-w-3xl px-2">
|
|
{meta.title && (
|
|
<header className="mb-9 space-y-1">
|
|
{meta.title && (
|
|
<h1 className="font-display text-3xl tracking-tight text-slate-800 dark:text-gray-100">
|
|
{meta.title}
|
|
</h1>
|
|
)}
|
|
</header>
|
|
)}
|
|
<Prose className="">{children}</Prose>
|
|
</article>
|
|
</main>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|