'use client' import { PlusIcon } from 'lucide-react' import { createContext, useContext, useState, type ReactNode } from 'react' import { Button } from '@/components/ui/button' /** * C139 — the contacts create surface. One tiny client store shared by the * desktop row (inside the table container) and the mobile FAB: opening from * either mounts the same row. The row itself is `ContactCreateRow`. */ type ContactCreateState = { open: boolean setOpen: (open: boolean) => void } const ContactCreateContext = createContext(null) export const ContactCreateProvider = ({ children }: { children: ReactNode }) => { const [open, setOpen] = useState(false) return ( {children} ) } export const useContactCreate = (): ContactCreateState => { const context = useContext(ContactCreateContext) if (!context) throw new Error('useContactCreate must be used within ContactCreateProvider') return context } /** Desktop trailing control of the omnibox (the mobile FAB is Fase 5). */ export const ContactCreateButton = () => { const { open, setOpen } = useContactCreate() return ( ) }