diff options
| author | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
| commit | 50a0f0240d7fef133eb5acc1bea2b1168b08e9db (patch) | |
| tree | 307e09e505580415a58d64b5fc3580e9235869f1 /components/anime/mobile/reused/infoChip.js | |
| parent | Update README.md (#104) (diff) | |
| download | moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.tar.xz moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.zip | |
migrate to typescript
Diffstat (limited to 'components/anime/mobile/reused/infoChip.js')
| -rw-r--r-- | components/anime/mobile/reused/infoChip.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/components/anime/mobile/reused/infoChip.js b/components/anime/mobile/reused/infoChip.js deleted file mode 100644 index 41def85..0000000 --- a/components/anime/mobile/reused/infoChip.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from "react"; -import { getFormat } from "../../../../utils/getFormat"; - -export default function InfoChip({ info, color, className }) { - return ( - <div - className={`flex-wrap w-full justify-start md:pt-1 gap-4 ${className}`} - > - {info?.episodes && ( - <div - className={`dynamic-text rounded-md px-2 font-karla font-bold`} - style={color} - > - {info?.episodes} Episodes - </div> - )} - {info?.averageScore && ( - <div - className={`dynamic-text rounded-md px-2 font-karla font-bold`} - style={color} - > - {info?.averageScore}% - </div> - )} - {info?.format && ( - <div - className={`dynamic-text rounded-md px-2 font-karla font-bold`} - style={color} - > - {getFormat(info?.format)} - </div> - )} - {info?.status && ( - <div - className={`dynamic-text rounded-md px-2 font-karla font-bold`} - style={color} - > - {info?.status} - </div> - )} - </div> - ); -} |