{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "career-2",
  "dependencies": [
    "lucide-react",
    "react-icons"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/career-2.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { FaMapMarkerAlt, FaClock, FaDollarSign } from \"react-icons/fa\";\nimport { MdWorkOutline } from \"react-icons/md\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\n\nexport type Career2JobType =\n  | \"Full-time\"\n  | \"Part-time\"\n  | \"Contract\"\n  | \"Internship\";\n\nexport interface Career2Category {\n  /** Display label shown in the tab. */\n  label: string;\n  /** Unique value used for filtering. */\n  value: string;\n}\n\nexport interface Career2Job {\n  /** Unique identifier. */\n  id: string;\n  /** Job title. */\n  title: string;\n  /** Short description of the role. */\n  description: string;\n  /** Category value this job belongs to (matches Career2Category.value). */\n  category: string;\n  /** Country or city where the role is based. */\n  location: string;\n  /** Emoji flag or country code to display alongside the location. */\n  locationFlag?: string;\n  /** Employment type. */\n  type: Career2JobType;\n  /** Salary or compensation range (e.g. \"$100k – $140k\"). */\n  salaryRange?: string;\n  /** Link to the application / job detail page. */\n  href?: string;\n}\n\n/** Bottom call-to-action banner. */\nexport interface Career2Cta {\n  /** Primary text / sentence in the CTA. */\n  text: string;\n  /** Label for the link / action. */\n  linkLabel: string;\n  /** Destination URL. */\n  href?: string;\n}\n\nexport interface Career2Props {\n  /** Small eyebrow badge above the heading. */\n  badge?: string;\n  /** Main section heading. */\n  heading?: string;\n  /** Accent/highlight portion of the heading (rendered separately). */\n  headingAccent?: string;\n  /** Supporting description beneath the heading. */\n  description?: string;\n  /** Category filter tabs. */\n  categories?: Career2Category[];\n  /** List of job openings. */\n  jobs?: Career2Job[];\n  /** Bottom CTA banner configuration. */\n  className?: string;\n  /**\n   * Optional link renderer — use this to integrate with Next.js `<Link>`\n   * or any router's anchor component.\n   */\n  renderLink?: (props: {\n    href: string;\n    label: string;\n    children: ReactNode;\n    className?: string;\n  }) => ReactNode;\n}\n\nconst defaultCategories: Career2Category[] = [\n  { label: \"Banking\", value: \"banking\" },\n  { label: \"Investments\", value: \"investments\" },\n  { label: \"Fintech\", value: \"fintech\" },\n];\n\nconst defaultJobs: Career2Job[] = [\n  {\n    id: \"eng-manager\",\n    title: \"Engineering Manager\",\n    description: \"Lead a team of engineers and deliver great experiences.\",\n    category: \"banking\",\n    location: \"Germany\",\n    locationFlag: \"🇩🇪\",\n    type: \"Full-time\",\n    salaryRange: \"$100k – $120k\",\n    href: \"#\",\n  },\n  {\n    id: \"ui-ux-designer\",\n    title: \"Fintech UI/UX Designer\",\n    description: \"Design intuitive banking apps for better user trust.\",\n    category: \"banking\",\n    location: \"United States\",\n    locationFlag: \"🇺🇸\",\n    type: \"Full-time\",\n    salaryRange: \"$100k – $120k\",\n    href: \"#\",\n  },\n  {\n    id: \"blockchain-engineer\",\n    title: \"Blockchain Solutions Engineer\",\n    description: \"Develop scalable blockchain solutions for finance.\",\n    category: \"banking\",\n    location: \"Brazil\",\n    locationFlag: \"🇧🇷\",\n    type: \"Full-time\",\n    salaryRange: \"$100k – $120k\",\n    href: \"#\",\n  },\n  {\n    id: \"portfolio-analyst\",\n    title: \"Portfolio Risk Analyst\",\n    description: \"Model risk exposure and guide investment strategies.\",\n    category: \"investments\",\n    location: \"United Kingdom\",\n    locationFlag: \"🇬🇧\",\n    type: \"Full-time\",\n    salaryRange: \"$90k – $115k\",\n    href: \"#\",\n  },\n  {\n    id: \"quant-researcher\",\n    title: \"Quantitative Researcher\",\n    description: \"Build statistical models to uncover alpha opportunities.\",\n    category: \"investments\",\n    location: \"Singapore\",\n    locationFlag: \"🇸🇬\",\n    type: \"Full-time\",\n    salaryRange: \"$120k – $160k\",\n    href: \"#\",\n  },\n  {\n    id: \"payments-engineer\",\n    title: \"Payments Infrastructure Engineer\",\n    description: \"Architect real-time payment rails for global scale.\",\n    category: \"fintech\",\n    location: \"Remote\",\n    locationFlag: \"🌍\",\n    type: \"Full-time\",\n    salaryRange: \"$110k – $140k\",\n    href: \"#\",\n  },\n  {\n    id: \"compliance-officer\",\n    title: \"Regulatory Compliance Officer\",\n    description: \"Ensure our products meet global financial regulations.\",\n    category: \"fintech\",\n    location: \"Netherlands\",\n    locationFlag: \"🇳🇱\",\n    type: \"Contract\",\n    salaryRange: \"$80k – $100k\",\n    href: \"#\",\n  },\n];\n\nfunction CategoryTab({\n  category,\n  isActive,\n  onClick,\n}: {\n  category: Career2Category;\n  isActive: boolean;\n  onClick: () => void;\n}) {\n  return (\n    <button\n      type=\"button\"\n      onClick={onClick}\n      aria-pressed={isActive}\n      className={cn(\n        \"relative rounded-lg px-4 py-2 text-sm font-medium transition-all duration-200\",\n        \"focus-visible:ring-ring/50 outline-none focus-visible:ring-2\",\n        isActive\n          ? \"bg-muted text-foreground border-border border shadow-sm\"\n          : \"text-muted-foreground hover:text-foreground hover:bg-muted/60\",\n      )}\n    >\n      {category.label}\n    </button>\n  );\n}\n\nfunction MetaPill({\n  icon,\n  label,\n  className,\n}: {\n  icon: ReactNode;\n  label: string;\n  className?: string;\n}) {\n  return (\n    <span\n      className={cn(\n        \"text-muted-foreground inline-flex items-center gap-1.5 text-xs\",\n        className,\n      )}\n    >\n      <span className=\"text-muted-foreground/70 shrink-0\">{icon}</span>\n      {label}\n    </span>\n  );\n}\n\nfunction JobCard({\n  job,\n  renderLink,\n}: {\n  job: Career2Job;\n  renderLink?: Career2Props[\"renderLink\"];\n}) {\n  const href = job.href ?? \"#\";\n  const ariaLabel = `Apply for ${job.title}`;\n\n  const applyButton = (\n    <Button\n      variant=\"outline\"\n      size=\"sm\"\n      className=\"pointer-events-none h-8 shrink-0 rounded-lg px-4 text-xs font-medium\"\n      tabIndex={-1}\n      aria-hidden=\"true\"\n    >\n      Apply\n    </Button>\n  );\n\n  const inner = (\n    <div\n      className={cn(\n        \"group bg-muted flex flex-col gap-3 rounded-2xl px-5 py-4\",\n        \"shadow-[inset_0_1px_2px_0px_rgba(255,255,255,1),inset_0_0_0_1px_rgba(0,0,0,0.05),0px_0px_0px_1px_rgba(0,0,0,0.08),0px_1px_2px_-1px_rgba(0,0,0,0.08),0px_2px_4px_0px_rgba(0,0,0,0.06)] transition-all duration-300 dark:shadow-[inset_0_0_2px_2px_rgba(255,255,255,0.04),inset_0_0_0_1px_rgba(255,255,255,0.08),0px_0px_0px_1px_rgba(255,255,255,0.06),0px_1px_2px_-1px_rgba(0,0,0,0.5),0px_2px_4px_0px_rgba(0,0,0,0.4)]\",\n        \"sm:flex-row sm:items-center sm:gap-4\",\n      )}\n    >\n      <div className=\"min-w-0 flex-1 space-y-1\">\n        <div className=\"flex flex-col\">\n          <h3 className=\"text-foreground group-hover:text-foreground/80 text-sm leading-snug font-semibold transition-colors sm:text-xl\">\n            {job.title}\n          </h3>\n          <p className=\"text-muted-foreground line-clamp-1 text-xs sm:text-sm\">\n            {job.description}\n          </p>\n        </div>\n\n        <div className=\"flex flex-wrap items-center gap-x-3 gap-y-1 pt-1\">\n          <MetaPill\n            icon={\n              job.locationFlag ? (\n                <span className=\"text-sm leading-none\">{job.locationFlag}</span>\n              ) : (\n                <FaMapMarkerAlt className=\"size-3\" />\n              )\n            }\n            label={job.location}\n          />\n\n          <span className=\"bg-border size-1 rounded-full\" aria-hidden=\"true\" />\n\n          <MetaPill icon={<FaClock className=\"size-3\" />} label={job.type} />\n\n          {job.salaryRange && (\n            <>\n              <span\n                className=\"bg-border size-1 rounded-full\"\n                aria-hidden=\"true\"\n              />\n              <MetaPill\n                icon={<FaDollarSign className=\"size-3\" />}\n                label={job.salaryRange}\n              />\n            </>\n          )}\n        </div>\n      </div>\n\n      <div className=\"flex shrink-0 justify-end sm:justify-center\">\n        {applyButton}\n      </div>\n    </div>\n  );\n\n  if (renderLink) {\n    return renderLink({\n      href,\n      label: ariaLabel,\n      children: inner,\n      className: \"block\",\n    });\n  }\n\n  return (\n    <a href={href} aria-label={ariaLabel} className=\"block\">\n      {inner}\n    </a>\n  );\n}\n\nfunction EmptyState() {\n  return (\n    <div className=\"border-border bg-muted/30 flex flex-col items-center gap-3 rounded-xl border border-dashed py-16 text-center\">\n      <span className=\"bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full\">\n        <MdWorkOutline className=\"size-5\" />\n      </span>\n      <p className=\"text-foreground text-sm font-medium\">\n        No openings in this category\n      </p>\n      <p className=\"text-muted-foreground max-w-xs text-xs\">\n        We don't have any open roles here right now. Check back soon or explore\n        another category.\n      </p>\n    </div>\n  );\n}\n\nexport default function Career2({\n  badge = \"Join our finance team\",\n  heading = \"Exciting roles in\",\n  headingAccent = \"modern finance\",\n  description = \"Drive innovation in secure banking and digital payments.\",\n  categories = defaultCategories,\n  jobs = defaultJobs,\n  className,\n  renderLink,\n}: Career2Props) {\n  const [activeCategory, setActiveCategory] = useState<string>(\n    categories[0]?.value ?? \"\",\n  );\n\n  const filteredJobs = jobs.filter((j) => j.category === activeCategory);\n\n  return (\n    <section className={cn(\"bg-background w-full py-8 lg:py-12\", className)}>\n      <div className=\"mx-auto max-w-3xl px-4 sm:px-6 lg:px-8\">\n        <div className=\"mb-10 flex flex-col items-center text-center sm:mb-12\">\n          {badge && (\n            <Badge\n              variant=\"outline\"\n              className=\"text-muted-foreground mb-4 rounded-full px-3 py-1 text-xs font-medium\"\n            >\n              {badge}\n            </Badge>\n          )}\n\n          {(heading || headingAccent) && (\n            <h2 className=\"text-foreground text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl\">\n              {heading}\n              {heading && headingAccent ? \" \" : \"\"}\n              {headingAccent && (\n                <span className=\"text-foreground\">{headingAccent}</span>\n              )}\n            </h2>\n          )}\n\n          {description && (\n            <p className=\"text-muted-foreground mt-3 max-w-md text-sm sm:text-base\">\n              {description}\n            </p>\n          )}\n        </div>\n\n        {categories.length > 0 && (\n          <div\n            className=\"border-border bg-muted/40 mx-auto mb-6 flex w-fit items-center justify-center gap-1 rounded-xl border p-1\"\n            role=\"tablist\"\n            aria-label=\"Job categories\"\n          >\n            {categories.map((cat) => (\n              <CategoryTab\n                key={cat.value}\n                category={cat}\n                isActive={activeCategory === cat.value}\n                onClick={() => setActiveCategory(cat.value)}\n              />\n            ))}\n          </div>\n        )}\n\n        <div className=\"flex flex-col gap-3\">\n          {filteredJobs.length > 0 ? (\n            filteredJobs.map((job) => (\n              <JobCard key={job.id} job={job} renderLink={renderLink} />\n            ))\n          ) : (\n            <EmptyState />\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport { Career2 };\n",
      "type": "registry:ui",
      "target": "components/ui/career-2.tsx"
    }
  ],
  "type": "registry:ui"
}
