Rev 3070 |
|
Comparar con el anterior |
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
3719 |
stevensc |
1 |
import React from 'react';
|
|
|
2 |
import { useSelector } from 'react-redux';
|
|
|
3 |
import { Typography } from '@mui/material';
|
|
|
4 |
|
|
|
5 |
import SearchItem from './SearchItem';
|
|
|
6 |
|
|
|
7 |
export default function SearchList({ items = [] }) {
|
|
|
8 |
const labels = useSelector(({ intl }) => intl.labels);
|
|
|
9 |
|
|
|
10 |
if (!items.length) {
|
|
|
11 |
return <Typography>{labels.datatable_empty}</Typography>;
|
|
|
12 |
}
|
|
|
13 |
|
|
|
14 |
return items.map((item) => <SearchItem key={item.id} item={item} />);
|
|
|
15 |
}
|