mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-24 00:53:05 +00:00
25 lines
806 B
TypeScript
25 lines
806 B
TypeScript
import type { ComponentProps, ReactNode } from 'react'
|
|
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const campaignPageShellClassName =
|
|
// B200 — the mobile filter bar (campaignListOmniboxFormClassName) cancels
|
|
// exactly this gap-8 with `max-md:-mb-8` so the first list card glues to
|
|
// the bar; change the gap here and that cancellation goes stale.
|
|
'mx-auto flex w-full max-w-screen-2xl flex-col gap-8'
|
|
|
|
export const campaignPrioritySurfaceClassName =
|
|
'shadow-[0_4px_24px_rgb(28_25_23/0.08)] ring-1 ring-foreground/10'
|
|
|
|
export const CampaignPageShell = ({
|
|
children,
|
|
className,
|
|
...props
|
|
}: {
|
|
children: ReactNode
|
|
className?: string
|
|
} & Omit<ComponentProps<'div'>, 'children' | 'className'>) => (
|
|
<div className={cn(campaignPageShellClassName, className)} {...props}>
|
|
{children}
|
|
</div>
|
|
)
|