Files
supabase/apps/studio/components/interfaces/Reports/ReportPadding.tsx
T
Joshen Lim 84f73bb675 Chore/use readonly connection string for queryblock (#34892)
* Use read only connection string in queryblock

* Add comments
2025-04-11 16:43:06 +08:00

26 lines
691 B
TypeScript

import { PropsWithChildren } from 'react'
import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state'
import { useAppStateSnapshot } from 'state/app-state'
import { cn } from 'ui'
/**
* Standardized padding and width layout for non-custom reports
*/
const ReportPadding = ({ children }: PropsWithChildren<{}>) => {
const snap = useAiAssistantStateSnapshot()
const { editorPanel } = useAppStateSnapshot()
return (
<div
className={cn(
'flex flex-col gap-4 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 2xl:px-32 w-full',
snap.open || editorPanel.open ? 'xl:px-6' : 'xl:px-22'
)}
>
{children}
</div>
)
}
export default ReportPadding