import clsx from "clsx"; import {ButtonPrimary} from "../buttons/ButtonPrimary"; import { useApp } from "../../../hooks"; interface Props { value: string; setValue: React.Dispatch>; onNew?: () => void; onNewRoute?: string; placeholder?: string; className?: string; disabled?: boolean; } export default function InputSearch({ value, setValue, onNew, onNewRoute, placeholder, className, disabled }: Props) { const { t } = useApp(); return (
setValue(e.target.value)} autoComplete="off" disabled={disabled} />
{onNew && {t("shared.new")}} {onNewRoute && {t("shared.new")}}
); }