mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 02:23:07 +00:00
- 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
20 lines
614 B
TypeScript
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)
|