Skip to content

Commit 7bbee24

Browse files
committed
refactor(ui): separate SearchResultInfo component
1 parent 7bf3169 commit 7bbee24

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/components/SearchResultInfo.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Container, Row, Col, Alert } from 'react-bootstrap';
2+
3+
export const SearchResultInfo = ({ searchQuery }) => (
4+
<Container>
5+
<Row className="justify-content-center text-center">
6+
<Col xs="auto">
7+
<Alert variant="primary">
8+
Showing results for
9+
<span className="fw-bold"> {searchQuery}</span>
10+
</Alert>
11+
</Col>
12+
</Row>
13+
</Container>
14+
);

0 commit comments

Comments
 (0)