-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add component displaying when search results are empty
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
apps/jurumarble/src/app/search/components/NoSearchResult.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Image from 'next/image'; | ||
import { noSearchResult } from 'public/images'; | ||
import styled from 'styled-components'; | ||
|
||
function NoSearchResult() { | ||
return ( | ||
<Container> | ||
<Image | ||
alt="검색 결과가 없습니다." | ||
src={noSearchResult} | ||
width={140} | ||
height={140} | ||
/> | ||
<Text>검색 결과가 없어요. 다른 검색어를 입력해보세요.</Text> | ||
</Container> | ||
); | ||
} | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
`; | ||
|
||
const Text = styled.p``; | ||
|
||
export default NoSearchResult; |