teqo-backup/src/components/campaign/dashboard/HomeSearchExcludeContext.tsx
Cursor Agent 490d5deeb7
B109 — bottom drawer: fullscreen search, wider labels, exclude current entity
- Add QUICK_ACTIONS_SNAP_FULL; drawer expands on search focus and hides action strip
- Tighten dock bottom gap; restore dock/collapsed on blur per scroll position (B100)
- Widen CampaignHomeActionButton to w-[5.5rem] for two-line labels
- Client-side filter excludes current page entity from drawer search hits
- Unit + e2e coverage for full snap, exclusion, and label readability
2026-08-01 20:38:10 +00:00

20 lines
614 B
TypeScript

'use client'
import { createContext, useContext, type ReactNode } from 'react'
import type { CampaignQuickActionContext } from '@/lib/campaignQuickActionContext'
const HomeSearchExcludeContext = createContext<CampaignQuickActionContext | null>(null)
export const HomeSearchExcludeProvider = ({
value,
children,
}: {
value: CampaignQuickActionContext
children: ReactNode
}) => (
<HomeSearchExcludeContext.Provider value={value}>{children}</HomeSearchExcludeContext.Provider>
)
export const useHomeSearchExcludeContext = (): CampaignQuickActionContext | null =>
useContext(HomeSearchExcludeContext)