Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

616 B
Raw Blame
import React from 'react'
import { Zap } from 'lucide-react'
import { useTranslation } from '../../i18n'
import type { HelpGuideSize } from '../../help/types'
import HelpBadge from './HelpBadge'

/** "Quick", "Guide" or "Walkthrough": how much of a task the guide covers. */
export default function HelpSizeChip({ size }: { size: HelpGuideSize }): React.ReactElement {
  const { t } = useTranslation()
  const label = size === 'quick' ? t('help.center.quick') : size === 'tour' ? t('help.center.tour') : t('help.center.guide')
  return (
    <HelpBadge tone="accent" icon={Zap}>
      {label}
    </HelpBadge>
  )
}