{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "integrations-01",
  "title": "Integrations directory",
  "description": "Real tools with their marks, by category and with a search, where Connect becomes Connecting then Connected in the same pill, an approval error folds in under its card, and the grid closes ranks as cards leave a view.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/animated-size.json",
    "https://ui.ndekocode.dev/r/brand-logos.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/input.json",
    "https://ui.ndekocode.dev/r/motion-number.json",
    "https://ui.ndekocode.dev/r/tabs.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/integrations/integrations-01/index.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion, type Transition } from 'motion/react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { MotionNumber } from '@/components/core/motion-number';\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { BlocksIcon, SearchIcon, XIcon } from '@/registry/ndeko/lib/icons';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Input } from '@/registry/ndeko/ui/input';\nimport { Tabs, TabsList, TabsTab } from '@/registry/ndeko/ui/tabs';\n\nimport {\n  CATEGORIES,\n  INITIALLY_CONNECTED,\n  INTEGRATIONS,\n  PAGE,\n  VIEWS,\n  nameOf,\n  type Integration,\n  type ViewId,\n} from './data';\nimport { IntegrationCard, type ConnectState } from './integration-card';\n\nconst CONNECTING_MS = 900;\n\nconst EASE_OUT_STRONG: [number, number, number, number] = [0.23, 1, 0.32, 1];\n\nconst CARD_TRANSITION: Transition = { duration: 0.2, ease: EASE_OUT_STRONG };\n\nconst CARD_EXIT: Transition = { duration: 0.12, ease: EASE_OUT_STRONG };\n\nconst CARD_LAYOUT: Transition = { type: 'spring', bounce: 0, duration: 0.3 };\n\ntype ConnectStates = Record<string, ConnectState>;\n\nfunction initialStatesOf(): ConnectStates {\n  const states: ConnectStates = {};\n  for (const integration of INTEGRATIONS) {\n    const isConnected = INITIALLY_CONNECTED.includes(integration.id);\n    if (isConnected) {\n      states[integration.id] = 'connected';\n    } else {\n      states[integration.id] = 'idle';\n    }\n  }\n  return states;\n}\n\nfunction isViewId(value: unknown): value is ViewId {\n  return VIEWS.some((view) => view.id === value);\n}\n\nfunction matchesQuery(integration: Integration, query: string) {\n  const needle = query.trim().toLowerCase();\n  if (!needle) {\n    return true;\n  }\n  const category = CATEGORIES[integration.category].label;\n  const name = nameOf(integration);\n  const haystack = `${name} ${integration.description} ${category}`;\n  const lowered = haystack.toLowerCase();\n  return lowered.includes(needle);\n}\n\nfunction matchesView(\n  integration: Integration,\n  view: ViewId,\n  states: ConnectStates\n) {\n  if (view === 'all') {\n    return true;\n  }\n  if (view === 'connected') {\n    return states[integration.id] === 'connected';\n  }\n  return integration.category === view;\n}\n\nfunction connectedCountOf(states: ConnectStates) {\n  const values = Object.values(states);\n  const connected = values.filter((state) => state === 'connected');\n  return connected.length;\n}\n\nfunction connectedNounOf(count: number) {\n  if (count === 1) {\n    return 'tool connected';\n  }\n  return 'tools connected';\n}\n\nfunction outcomeOf(integration: Integration, attempts: number): ConnectState {\n  const isFirstAttempt = attempts === 0;\n  const needsApproval = Boolean(integration.needsApproval);\n  const isBlocked = needsApproval && isFirstAttempt;\n  if (isBlocked) {\n    return 'failed';\n  }\n  return 'connected';\n}\n\nfunction searchHintOf(view: ViewId) {\n  if (view === 'all') {\n    return 'Try the name of a tool or a word from what it does';\n  }\n  if (view === 'connected') {\n    return 'Only connected tools are searched here, clear the search or open All';\n  }\n  const label = CATEGORIES[view].label;\n  return `Only ${label} tools are searched here, clear the search or open All`;\n}\n\ntype EmptyViewProps = {\n  view: ViewId;\n  query: string;\n  onClearSearch: () => void;\n  onBrowseAll: () => void;\n};\n\nfunction EmptyView({\n  view,\n  query,\n  onClearSearch,\n  onBrowseAll,\n}: EmptyViewProps) {\n  const trimmed = query.trim();\n  const hasQuery = trimmed.length > 0;\n  const isConnectedView = view === 'connected';\n\n  if (!hasQuery && isConnectedView) {\n    return (\n      <div className='flex flex-col items-center px-6 py-12 text-center'>\n        <span className='keycap-3d text-muted-foreground flex size-9 items-center justify-center rounded-lg'>\n          <BlocksIcon />\n        </span>\n        <p className='mt-4 text-sm font-medium'>Nothing connected yet</p>\n        <p className='text-muted-foreground mt-1 max-w-sm text-[13px] text-balance'>\n          Connect a tool from the full list and it shows up here\n        </p>\n        <Button variant='outline' onClick={onBrowseAll} className='mt-4'>\n          Browse all\n        </Button>\n      </div>\n    );\n  }\n\n  return (\n    <div className='flex flex-col items-center px-6 py-12 text-center'>\n      <span className='keycap-3d text-muted-foreground flex size-9 items-center justify-center rounded-lg'>\n        <SearchIcon />\n      </span>\n      <p className='mt-4 text-sm font-medium'>\n        No integration matches “{trimmed}”\n      </p>\n      <p className='text-muted-foreground mt-1 max-w-sm text-[13px] text-balance'>\n        {searchHintOf(view)}\n      </p>\n      <Button variant='outline' onClick={onClearSearch} className='mt-4'>\n        <XIcon />\n        Clear search\n      </Button>\n    </div>\n  );\n}\n\nexport default function Integrations01() {\n  const [states, setStates] = useState<ConnectStates>(initialStatesOf);\n  const [attempts, setAttempts] = useState<Record<string, number>>({});\n  const [view, setView] = useState<ViewId>('all');\n  const [query, setQuery] = useState('');\n  const timersRef = useRef(new Map<string, number>());\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const allowsLayout = !shouldReduceMotion;\n  const connectedCount = connectedCountOf(states);\n  const visible = INTEGRATIONS.filter(\n    (integration) =>\n      matchesView(integration, view, states) && matchesQuery(integration, query)\n  );\n  const isEmpty = visible.length === 0;\n  const hasQuery = query.length > 0;\n\n  useEffect(() => {\n    const timers = timersRef.current;\n    return () => {\n      for (const timer of timers.values()) {\n        window.clearTimeout(timer);\n      }\n    };\n  }, []);\n\n  function setStateOf(id: string, state: ConnectState) {\n    setStates((current) => ({ ...current, [id]: state }));\n  }\n\n  function finishConnecting(integration: Integration) {\n    const attemptCount = attempts[integration.id] ?? 0;\n    const outcome = outcomeOf(integration, attemptCount);\n    setStateOf(integration.id, outcome);\n    setAttempts((current) => ({\n      ...current,\n      [integration.id]: attemptCount + 1,\n    }));\n    timersRef.current.delete(integration.id);\n  }\n\n  function connect(integration: Integration) {\n    setStateOf(integration.id, 'connecting');\n    const timer = window.setTimeout(\n      () => finishConnecting(integration),\n      CONNECTING_MS\n    );\n    timersRef.current.set(integration.id, timer);\n  }\n\n  function disconnect(integration: Integration) {\n    setStateOf(integration.id, 'idle');\n  }\n\n  function pickView(value: unknown) {\n    if (isViewId(value)) {\n      setView(value);\n    }\n  }\n\n  function handleSearchKeyDown(event: React.KeyboardEvent<HTMLInputElement>) {\n    if (event.key === 'Escape') {\n      event.preventDefault();\n      setQuery('');\n    }\n  }\n\n  return (\n    <div className='bg-background text-foreground min-h-dvh w-full'>\n      <div className='mx-auto flex w-full max-w-5xl flex-col gap-5 px-4 py-6 md:px-6 md:py-10'>\n        <header className='flex flex-wrap items-end justify-between gap-x-6 gap-y-2'>\n          <div className='flex max-w-xl flex-col gap-1'>\n            <h1 className='text-lg font-semibold text-balance'>{PAGE.title}</h1>\n            <p className='text-muted-foreground text-[13px] text-pretty'>\n              {PAGE.description}\n            </p>\n          </div>\n          <p className='text-muted-foreground text-[13px]'>\n            <MotionNumber\n              value={connectedCount}\n              className='text-foreground font-medium'\n            />{' '}\n            {connectedNounOf(connectedCount)}\n          </p>\n        </header>\n        <div className='flex flex-col gap-3 lg:flex-row lg:items-center'>\n          <div className='-mx-4 overflow-x-auto px-4 lg:mx-0 lg:px-0'>\n            <Tabs value={view} onValueChange={pickView}>\n              <TabsList variant='segmented' aria-label='Show integrations'>\n                {VIEWS.map((option) => (\n                  <TabsTab key={option.id} value={option.id}>\n                    {option.label}\n                    {option.id === 'connected' && (\n                      <span className='bg-foreground/[0.06] text-muted-foreground inline-flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[11px]'>\n                        <MotionNumber value={connectedCount} />\n                      </span>\n                    )}\n                  </TabsTab>\n                ))}\n              </TabsList>\n            </Tabs>\n          </div>\n          <div className='relative min-w-0 lg:ms-auto lg:w-64'>\n            <SearchIcon className='text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2' />\n            <Input\n              type='search'\n              value={query}\n              onChange={(event) => setQuery(event.target.value)}\n              onKeyDown={handleSearchKeyDown}\n              placeholder='Search integrations'\n              aria-label='Search integrations'\n              className='ps-8 pe-9'\n            />\n            {hasQuery && (\n              <button\n                type='button'\n                onClick={() => setQuery('')}\n                aria-label='Clear search'\n                className='text-muted-foreground hover:bg-foreground/5 hover:text-foreground focus-visible:ring-ring/25 absolute end-1.5 top-1/2 inline-flex size-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-md outline-none focus-visible:ring-[3px]'\n              >\n                <XIcon className='size-3.5' />\n              </button>\n            )}\n          </div>\n        </div>\n        <AnimatedSize>\n          <ul className='grid gap-3 sm:grid-cols-2 lg:grid-cols-3'>\n            <AnimatePresence mode='popLayout' initial={false}>\n              {visible.map((integration) => (\n                <motion.li\n                  key={integration.id}\n                  layout={allowsLayout && 'position'}\n                  initial={{ opacity: 0, scale: 0.98 }}\n                  animate={{\n                    opacity: 1,\n                    scale: 1,\n                    transition: CARD_TRANSITION,\n                  }}\n                  exit={{ opacity: 0, scale: 0.98, transition: CARD_EXIT }}\n                  transition={{ layout: CARD_LAYOUT }}\n                >\n                  <IntegrationCard\n                    integration={integration}\n                    state={states[integration.id]}\n                    onConnect={() => connect(integration)}\n                    onDisconnect={() => disconnect(integration)}\n                  />\n                </motion.li>\n              ))}\n            </AnimatePresence>\n          </ul>\n          <AnimatePresence initial={false}>\n            {isEmpty && (\n              <motion.div\n                key='empty'\n                initial={{ opacity: 0 }}\n                animate={{ opacity: 1, transition: CARD_TRANSITION }}\n                exit={{ opacity: 0, transition: CARD_EXIT }}\n              >\n                <EmptyView\n                  view={view}\n                  query={query}\n                  onClearSearch={() => setQuery('')}\n                  onBrowseAll={() => setView('all')}\n                />\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </AnimatedSize>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-01/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-01/integration-card.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type MotionProps,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useId } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { BrandLogo } from '@/registry/ndeko/lib/brand-logos';\nimport {\n  CheckIcon,\n  LoaderCircleIcon,\n  RefreshCwIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport { APPROVER, CATEGORIES, nameOf, type Integration } from './data';\n\nexport type ConnectState = 'idle' | 'connecting' | 'connected' | 'failed';\n\nconst EASE_OUT_STRONG: [number, number, number, number] = [0.23, 1, 0.32, 1];\n\nconst SWAP_TRANSITION: Transition = { duration: 0.15, ease: [0.2, 0, 0, 1] };\n\nconst ENTER: Transition = { duration: 0.2, ease: EASE_OUT_STRONG };\n\nconst EXIT: Transition = { duration: 0.14, ease: EASE_OUT_STRONG };\n\nconst SWAP_VARIANTS: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst FADE_VARIANTS: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\ntype PresenceProps = Pick<\n  MotionProps,\n  'initial' | 'animate' | 'exit' | 'transition'\n>;\n\nconst HEIGHT_PRESENCE: PresenceProps = {\n  initial: { height: 0, opacity: 0 },\n  animate: { height: 'auto', opacity: 1 },\n  exit: { height: 0, opacity: 0, transition: EXIT },\n  transition: ENTER,\n};\n\nconst FADE_PRESENCE: PresenceProps = {\n  initial: { opacity: 0 },\n  animate: { opacity: 1 },\n  exit: { opacity: 0, transition: EXIT },\n  transition: ENTER,\n};\n\nconst CONNECTED_LOOK =\n  'bg-success/10 text-success-foreground ring-success/25 shadow-none dark:bg-success/15 data-disabled:opacity-100 disabled:opacity-100';\n\nconst BUSY_LOOK = 'data-disabled:opacity-100 disabled:opacity-100';\n\nexport const CARD_SURFACE =\n  'bg-card hairline-ring ring-border rounded-xl shadow-[0_1px_2px_rgb(0_0_0/0.04)] dark:bg-foreground/[0.03]';\n\nfunction swapVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_VARIANTS;\n  }\n  return SWAP_VARIANTS;\n}\n\nfunction heightPresenceOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE_PRESENCE;\n  }\n  return HEIGHT_PRESENCE;\n}\n\nfunction labelOf(state: ConnectState) {\n  if (state === 'connecting') {\n    return 'Connecting';\n  }\n  if (state === 'connected') {\n    return 'Connected';\n  }\n  if (state === 'failed') {\n    return 'Try again';\n  }\n  return 'Connect';\n}\n\nfunction glyphOf(state: ConnectState) {\n  if (state === 'connecting') {\n    return {\n      key: 'connecting',\n      icon: <LoaderCircleIcon className='animate-spin' />,\n    };\n  }\n  if (state === 'connected') {\n    return { key: 'connected', icon: <CheckIcon /> };\n  }\n  if (state === 'failed') {\n    return { key: 'failed', icon: <RefreshCwIcon /> };\n  }\n  return null;\n}\n\nfunction lookOf(state: ConnectState) {\n  if (state === 'connected') {\n    return CONNECTED_LOOK;\n  }\n  if (state === 'connecting') {\n    return BUSY_LOOK;\n  }\n  return undefined;\n}\n\nfunction describedByOf(isFailed: boolean, errorId: string) {\n  if (isFailed) {\n    return errorId;\n  }\n  return undefined;\n}\n\ntype ConnectButtonProps = {\n  name: string;\n  state: ConnectState;\n  errorId: string;\n  onConnect: () => void;\n};\n\n/** One pill for every state: Connect becomes Connecting, then Connected or Try again, and resizes to its label. */\nfunction ConnectButton({\n  name,\n  state,\n  errorId,\n  onConnect,\n}: ConnectButtonProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const variants = swapVariantsOf(shouldReduceMotion);\n  const label = labelOf(state);\n  const glyph = glyphOf(state);\n  const isConnecting = state === 'connecting';\n  const isConnected = state === 'connected';\n  const isLocked = isConnecting || isConnected;\n  const isFailed = state === 'failed';\n\n  return (\n    <Button\n      size='sm'\n      disabled={isLocked}\n      focusableWhenDisabled\n      aria-label={`${label}: ${name}`}\n      aria-describedby={describedByOf(isFailed, errorId)}\n      onClick={onConnect}\n      className={lookOf(state)}\n    >\n      <AnimatedSize\n        as='span'\n        axis='width'\n        contentClassName='relative flex items-center gap-1.5'\n      >\n        <AnimatePresence mode='popLayout' initial={false}>\n          {glyph && (\n            <motion.span\n              key={glyph.key}\n              variants={variants}\n              initial='enter'\n              animate='visible'\n              exit='exit'\n              transition={SWAP_TRANSITION}\n              className='flex'\n            >\n              {glyph.icon}\n            </motion.span>\n          )}\n        </AnimatePresence>\n        <AnimatePresence mode='popLayout' initial={false}>\n          <motion.span\n            key={label}\n            variants={variants}\n            initial='enter'\n            animate='visible'\n            exit='exit'\n            transition={SWAP_TRANSITION}\n          >\n            {label}\n          </motion.span>\n        </AnimatePresence>\n      </AnimatedSize>\n    </Button>\n  );\n}\n\ntype IntegrationCardProps = {\n  integration: Integration;\n  state: ConnectState;\n  onConnect: () => void;\n  onDisconnect: () => void;\n};\n\nexport function IntegrationCard({\n  integration,\n  state,\n  onConnect,\n  onDisconnect,\n}: IntegrationCardProps) {\n  const titleId = useId();\n  const errorId = useId();\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const swapVariants = swapVariantsOf(shouldReduceMotion);\n  const heightPresence = heightPresenceOf(shouldReduceMotion);\n  const category = CATEGORIES[integration.category];\n  const name = nameOf(integration);\n  const isConnected = state === 'connected';\n  const isFailed = state === 'failed';\n\n  return (\n    <article\n      aria-labelledby={titleId}\n      className={cn(CARD_SURFACE, 'flex h-full flex-col p-4')}\n    >\n      <div className='flex items-center gap-3'>\n        <span className='keycap-3d flex size-9 shrink-0 items-center justify-center rounded-lg'>\n          <BrandLogo brand={integration.brand} className='size-4.5' />\n        </span>\n        <div className='min-w-0 flex-1'>\n          <h3 id={titleId} className='truncate text-sm font-medium'>\n            {name}\n          </h3>\n          <p className='text-muted-foreground text-xs'>{category.label}</p>\n        </div>\n      </div>\n      <p className='text-muted-foreground mt-3 text-[13px] leading-relaxed text-pretty'>\n        {integration.description}\n      </p>\n      <AnimatePresence initial={false}>\n        {isFailed && (\n          <motion.p\n            key='approval'\n            id={errorId}\n            {...heightPresence}\n            className='text-destructive-ink overflow-hidden text-xs leading-relaxed'\n          >\n            <span className='block pt-2'>\n              {name} needs a workspace owner to approve it. A request went to{' '}\n              {APPROVER}. Try again once they approve.\n            </span>\n          </motion.p>\n        )}\n      </AnimatePresence>\n      <div className='mt-auto flex items-center gap-1.5 pt-4'>\n        <ConnectButton\n          name={name}\n          state={state}\n          errorId={errorId}\n          onConnect={onConnect}\n        />\n        <AnimatePresence initial={false}>\n          {isConnected && (\n            <motion.span\n              key='disconnect'\n              variants={swapVariants}\n              initial='enter'\n              animate='visible'\n              exit='exit'\n              transition={SWAP_TRANSITION}\n              className='flex'\n            >\n              <Button\n                variant='ghost'\n                size='sm'\n                aria-label={`Disconnect ${name}`}\n                onClick={onDisconnect}\n              >\n                Disconnect\n              </Button>\n            </motion.span>\n          )}\n        </AnimatePresence>\n      </div>\n    </article>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-01/integration-card.tsx"
    },
    {
      "path": "registry/ndeko/blocks/integrations/integrations-01/data.ts",
      "content": "import { BRANDS, type BrandSlug } from '@/registry/ndeko/lib/brand-logos';\n\nexport type CategoryId = 'communication' | 'files' | 'finance' | 'developer';\n\nexport type ViewId = 'all' | 'connected' | CategoryId;\n\nexport type Integration = {\n  id: string;\n  brand: BrandSlug;\n  category: CategoryId;\n  description: string;\n  /** The first attempt asks for an owner's approval, so the block can show its error state. */\n  needsApproval?: boolean;\n};\n\nexport const PAGE = {\n  title: 'Integrations',\n  description:\n    'Connect the tools Fernhollow Studio already uses. Each one only reads what its card says.',\n};\n\nexport const CATEGORIES: Record<CategoryId, { label: string }> = {\n  communication: { label: 'Communication' },\n  files: { label: 'Files and docs' },\n  finance: { label: 'Finance' },\n  developer: { label: 'Developer' },\n};\n\nexport const VIEWS: { id: ViewId; label: string }[] = [\n  { id: 'all', label: 'All' },\n  { id: 'connected', label: 'Connected' },\n  { id: 'communication', label: 'Communication' },\n  { id: 'files', label: 'Files and docs' },\n  { id: 'finance', label: 'Finance' },\n  { id: 'developer', label: 'Developer' },\n];\n\nexport const APPROVER = 'Rosa Ilunga';\n\nexport const INTEGRATIONS: Integration[] = [\n  {\n    id: 'element',\n    brand: 'element',\n    category: 'communication',\n    description:\n      'Posts task updates to an Element room and links each one back to its task.',\n  },\n  {\n    id: 'gmail',\n    brand: 'gmail',\n    category: 'communication',\n    description:\n      'Turns emails sent to a project address into tasks, attachments included.',\n  },\n  {\n    id: 'zoom',\n    brand: 'zoom',\n    category: 'communication',\n    description:\n      'Adds a call link to a task and logs the call on its timeline when it ends.',\n  },\n  {\n    id: 'google-drive',\n    brand: 'googledrive',\n    category: 'files',\n    description: 'Attaches files from shared drives without copying them.',\n  },\n  {\n    id: 'notion',\n    brand: 'notion',\n    category: 'files',\n    description: 'Links pages to tasks and keeps their titles in sync.',\n  },\n  {\n    id: 'dropbox',\n    brand: 'dropbox',\n    category: 'files',\n    description:\n      'Saves the files people drop on a task into the project’s folder.',\n  },\n  {\n    id: 'quickbooks',\n    brand: 'quickbooks',\n    category: 'finance',\n    description:\n      'Sends approved hours to draft invoices, one line per project.',\n    needsApproval: true,\n  },\n  {\n    id: 'stripe',\n    brand: 'stripe',\n    category: 'finance',\n    description:\n      'Marks a Fernhollow invoice as paid once its payment comes through.',\n  },\n  {\n    id: 'xero',\n    brand: 'xero',\n    category: 'finance',\n    description: 'Copies logged expenses into your books with their receipts.',\n  },\n  {\n    id: 'github',\n    brand: 'github',\n    category: 'developer',\n    description:\n      'Closes a task when the pull request that mentions it is merged.',\n  },\n  {\n    id: 'linear',\n    brand: 'linear',\n    category: 'developer',\n    description:\n      'Keeps the status of an issue and its linked task the same, both ways.',\n  },\n  {\n    id: 'sentry',\n    brand: 'sentry',\n    category: 'developer',\n    description:\n      'Opens a task for a new error, with a link to the first event.',\n  },\n];\n\nexport const INITIALLY_CONNECTED = ['element', 'github'];\n\nexport function nameOf(integration: Integration) {\n  return BRANDS[integration.brand].title;\n}\n",
      "type": "registry:component",
      "target": "components/blocks/integrations-01/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "integrations"
  ],
  "type": "registry:block"
}