"use client"; import React from "react"; import { ChevronDown } from "lucide-react"; import { SEARCH_LIMITS, DEFAULT_SEARCH_LIMIT, } from "@/lib/frontend/search/urlState"; import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; export default function SearchLimitSelect({ limit, onLimitChange, isSubmitting, }) { const normalizedLimit = Number.isInteger(limit) && SEARCH_LIMITS.includes(limit) ? limit : DEFAULT_SEARCH_LIMIT; return (