// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React, { ChangeEvent, KeyboardEvent, forwardRef } from 'react'; import { getClassNamesFor } from '../util/getClassNamesFor'; export type PropTypes = { readonly disabled?: boolean; readonly moduleClassName?: string; readonly onChange: (ev: ChangeEvent) => unknown; readonly onKeyDown?: (ev: KeyboardEvent) => unknown; readonly placeholder: string; readonly value: string; }; const BASE_CLASS_NAME = 'module-SearchInput'; export const SearchInput = forwardRef( ( { disabled = false, moduleClassName, onChange, onKeyDown, placeholder, value, }, ref ) => { const getClassName = getClassNamesFor(BASE_CLASS_NAME, moduleClassName); return (
); } );