import clsx from "clsx"; import { FeatherSearch } from "@subframe/core"; import { useTranslation } from "react-i18next"; import { cn } from "~/lib/utils"; import { Button } from "../button"; interface Props { size?: "xs" | "sm" | "md"; onClick: () => void; className?: string; placeholder?: string; } // Subframe migration (strangler shim): this is NOT an editable field — it is a button // styled like a search box that triggers `onClick` (e.g. opens a search modal/palette). // It therefore maps to the already-migrated Subframe `Button` shim (variant="outline") // rather than Subframe's TextInput/SearchInput. The inline SVG is replaced by the // design-system FeatherSearch icon. Public API (size/onClick/className/placeholder) is // preserved exactly. See docs/subframe/COMPONENT-MAPPING.md. export default function InputSearchButton({ size = "md", onClick, className, placeholder }: Props) { const { t } = useTranslation(); return (