add: locale to menu drawers

This commit is contained in:
Mahyar Khanbolooki
2025-07-24 15:51:12 +03:30
parent 71069c42ca
commit c5d2a58e02
5 changed files with 88 additions and 40 deletions
+3 -2
View File
@@ -3,17 +3,18 @@ import SearchIcon from '../icons/SearchIcon';
type Props = {
value: string;
placeholder?: string;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
};
export default function SearchBox({ value, onChange }: Props) {
export default function SearchBox({ value, placeholder = '', onChange }: Props) {
return (
<div className="bg-white inline-flex rounded-xl px-4 h-10 w-full items-center content-center">
<SearchIcon stroke="#8C90A3" />
<input
onChange={onChange}
value={value}
placeholder="جستجو"
placeholder={placeholder}
className="text-[#8C90A3] block outline-none border-none focus:ring-0 focus:outline-none text-sm px-[7px] h-full items-center w-full"
type="text"
/>