import { useParams } from 'common' import { useFlag, withAuth } from 'hooks' import { BASE_PATH } from 'lib/constants' import { PropsWithChildren, ReactNode, forwardRef } from 'react' import { IconX, cn, LoadingLine, IconBook, IconLifeBuoy } from 'ui' import { ScaffoldContainer } from '../Scaffold' import Link from 'next/link' export type IntegrationWindowLayoutProps = { title: string integrationIcon: ReactNode loading?: boolean docsHref?: string } const IntegrationWindowLayout = ({ title, integrationIcon, children, loading = false, docsHref, }: PropsWithChildren) => { const ongoingIncident = useFlag('ongoingIncident') const maxHeight = ongoingIncident ? 'calc(100vh - 44px)' : '100vh' return (
{children}
{docsHref && ( Docs )} Support
) } const INTEGRATION_LAYOUT_MAX_WIDTH = '' // 'max-w-[720px]' export default withAuth(IntegrationWindowLayout) export const IntegrationWindowLayoutWithoutAuth = IntegrationWindowLayout export type HeaderProps = { title: string integrationIcon: ReactNode } const Header = ({ title, integrationIcon }: HeaderProps) => { return (
Supabase
{integrationIcon}
{title}
) } const maxWidthClasses = 'mx-auto w-full max-w-[1600px]' const paddingClasses = 'px-6 lg:px-14 xl:px-28 2xl:px-32' const IntegrationScaffoldContainer = forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => { return
}) IntegrationScaffoldContainer.displayName = 'IntegrationScaffoldContainer' export { IntegrationScaffoldContainer }