"use client"; /** * `communication-methods` step — Figma “Flow — Compact Card Stack” (node `20246-15828`). * Registry: `layoutKind: "card"` (`CREATE_FLOW_SCREEN_REGISTRY["communication-methods"]`). * * Lives under `screens/card/` (not `select/`): Figma **card stack** layout is a distinct shell from * two-column chip **select** frames. Future card-stack steps get their own `*Screen.tsx` here and * reuse `CardStack` / `CreateFlowStepShell` as needed. */ import { useState, useCallback, useMemo } from "react"; import { useMessages } from "../../../contexts/MessagesContext"; import { useCreateFlow } from "../../context/CreateFlowContext"; import { useCreateFlowMdUp } from "../../hooks/useCreateFlowMdUp"; import { CreateFlowHeaderLockup } from "../../components/CreateFlowHeaderLockup"; import CardStack from "../../../components/utility/CardStack"; import Create from "../../../components/modals/Create"; import TextArea from "../../../components/controls/TextArea"; import { CreateFlowStepShell } from "../../components/CreateFlowStepShell"; import { CREATE_FLOW_CARD_STACK_AREA_MAX_CLASS, CREATE_FLOW_MD_UP_COLUMN_MAX_CLASS, } from "../../components/createFlowLayoutTokens"; const IN_PERSON_CARD_ID = "in-person-meetings"; const SIGNAL_CARD_ID = "signal"; const VIDEO_MEETINGS_CARD_ID = "video-meetings"; const ADD_PLATFORM_CARD_IDS = [ IN_PERSON_CARD_ID, SIGNAL_CARD_ID, VIDEO_MEETINGS_CARD_ID, ] as const; const SECTION_FIELDS = [ "corePrinciple", "logisticsAdmin", "codeOfConduct", ] as const; type SectionField = (typeof SECTION_FIELDS)[number]; const COMMUNICATION_CARD_ORDER = [ IN_PERSON_CARD_ID, SIGNAL_CARD_ID, VIDEO_MEETINGS_CARD_ID, "4", "5", "6", "7", ] as const; function CreateModalSection({ title, value: _value, onChange, }: { title: string; value: string; onChange: (_value: string) => void; }) { return (

{title}

?