({
value,
onChange,
placeholder = "Search",
}: EntitySearchProps)
| 114 | }; |
| 115 | |
| 116 | export const EntitySearch = ({ |
| 117 | value, |
| 118 | onChange, |
| 119 | placeholder = "Search", |
| 120 | }: EntitySearchProps) => { |
| 121 | return ( |
| 122 | <div className="relative ml-auto"> |
| 123 | <SearchIcon className="size-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground" /> |
| 124 | <Input |
| 125 | className="max-w-[200px] bg-background shadow-none border-border pl-8" |
| 126 | placeholder={placeholder} |
| 127 | value={value} |
| 128 | onChange={(e) => onChange(e.target.value)} |
| 129 | /> |
| 130 | </div> |
| 131 | ); |
| 132 | }; |
| 133 | |
| 134 | interface EntityPaginationProps { |
| 135 | page: number; |
nothing calls this directly
no test coverage detected