diff options
| author | real-zephex <[email protected]> | 2024-03-26 13:21:55 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-03-26 13:21:55 +0530 |
| commit | 3acac648ad6f7c220a48ff9f92f42e814c2097ab (patch) | |
| tree | 894bd3085ca1021566ff68577136305c79bd2ea5 /src/app/search/components/fetchedInfo.js | |
| parent | idek (diff) | |
| download | dramalama-3acac648ad6f7c220a48ff9f92f42e814c2097ab.tar.xz dramalama-3acac648ad6f7c220a48ff9f92f42e814c2097ab.zip | |
restructured files
Diffstat (limited to 'src/app/search/components/fetchedInfo.js')
| -rw-r--r-- | src/app/search/components/fetchedInfo.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/app/search/components/fetchedInfo.js b/src/app/search/components/fetchedInfo.js deleted file mode 100644 index aa03437..0000000 --- a/src/app/search/components/fetchedInfo.js +++ /dev/null @@ -1,44 +0,0 @@ -import "../search.css"; -import Link from "next/link"; -import Image from "next/image"; - -export default async function fetchedInfo(data) { - return ( - <div className="animeEntry"> - {data ? ( - data.results && data.results.length > 0 ? ( - data.results.map((item, index) => ( - <Link - key={index} - href={`/info/${item.id}`} - style={{ textDecoration: "none" }} - > - <div className="anime"> - <p>{item.title}</p> - <Image - src={item.image} - className="animeImage" - width={120} - height={160} - alt="Drama Poster" - /> - </div> - </Link> - )) - ) : ( - <div style={{ margin: "0px auto" }}> - <p - style={{ - color: "white", - fontFamily: "Kanit", - fontSize: 18, - }} - > - No results found - </p> - </div> - ) - ) : null} - </div> - ); -} |