diff options
Diffstat (limited to 'components/anime/mobile/reused')
| -rw-r--r-- | components/anime/mobile/reused/infoChip.tsx (renamed from components/anime/mobile/reused/infoChip.js) | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/components/anime/mobile/reused/infoChip.js b/components/anime/mobile/reused/infoChip.tsx index 41def85..80ebf83 100644 --- a/components/anime/mobile/reused/infoChip.js +++ b/components/anime/mobile/reused/infoChip.tsx @@ -1,7 +1,20 @@ -import React from "react"; -import { getFormat } from "../../../../utils/getFormat"; +import React, { CSSProperties, FC } from "react"; +import { getFormat } from "@/utils/getFormat"; -export default function InfoChip({ info, color, className }) { +interface Info { + episodes?: number; + averageScore?: number; + format?: string; + status?: string; +} + +interface InfoChipProps { + info: Info; + color: any; + className: string; +} + +const InfoChip: FC<InfoChipProps> = ({ info, color, className }) => { return ( <div className={`flex-wrap w-full justify-start md:pt-1 gap-4 ${className}`} @@ -40,4 +53,6 @@ export default function InfoChip({ info, color, className }) { )} </div> ); -} +}; + +export default InfoChip; |