Skip to content

Commit

Permalink
refactor(ui): separate SearchResultInfo component
Browse files Browse the repository at this point in the history
  • Loading branch information
Valik3201 committed Jan 27, 2024
1 parent 7bf3169 commit 7bbee24
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/SearchResultInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Container, Row, Col, Alert } from 'react-bootstrap';

export const SearchResultInfo = ({ searchQuery }) => (
<Container>
<Row className="justify-content-center text-center">
<Col xs="auto">
<Alert variant="primary">
Showing results for
<span className="fw-bold"> {searchQuery}</span>
</Alert>
</Col>
</Row>
</Container>
);

0 comments on commit 7bbee24

Please sign in to comment.