Files
supabase/apps/www/components/Contribute/ContributePageLayout.tsx
549ca3677e feat: add similar threads on contribute (#42638)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

This adds a component showing a list of AI curated related threads to
the detail thread view.

## What is the current behavior?

This is not available.

## What is the new behavior?

A new component on the thread view.

## Additional context

Add any other context or screenshots.

---------

Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-03-05 12:06:55 -05:00

19 lines
622 B
TypeScript

import DefaultLayout from '~/components/Layouts/Default'
import { BackToThreadsLink } from '~/components/Contribute/BackToThreadsLink'
import { ContributeGuard } from '~/app/contribute/ContributeGuard'
export function ContributePageLayout({ children }: { children: React.ReactNode }) {
return (
<ContributeGuard>
<DefaultLayout>
<main className="min-h-screen flex flex-col items-center">
<div className="flex-1 w-full max-w-4xl mx-auto px-4 py-16">
<BackToThreadsLink />
{children}
</div>
</main>
</DefaultLayout>
</ContributeGuard>
)
}