diff --git a/src/components/shared/SearchBox.tsx b/src/components/shared/SearchBox.tsx new file mode 100644 index 0000000..19b1b83 --- /dev/null +++ b/src/components/shared/SearchBox.tsx @@ -0,0 +1,42 @@ +import type { ReactElement } from 'react'; +import { Search } from 'lucide-react'; +import { useAppTheme } from '@/hooks/useAppTheme'; + +export interface SearchBoxProps { + value: string; + onChange: (value: string) => void; + placeholder?: string; + containerClassName?: string; + inputClassName?: string; +} + +export const SearchBox = ({ + value, + onChange, + placeholder = 'Search...', + containerClassName = 'relative w-full sm:w-64', + inputClassName = 'w-full pl-9 pr-4 py-2 border border-[rgba(0,0,0,0.08)] rounded-md text-sm focus:outline-none focus:ring-2 transition-all bg-gray-50/30' +}: SearchBoxProps): ReactElement => { + const { primaryColor } = useAppTheme(); + + return ( +