mirror of
https://github.com/JustAnimeCore/JustAnime.git
synced 2026-04-17 22:01:45 +00:00
resolved info and watch
This commit is contained in:
18
src/components/ui/InfoTag/InfoTag.jsx
Normal file
18
src/components/ui/InfoTag/InfoTag.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import React from "react";
|
||||
|
||||
const InfoTag = ({ icon, text, bgColor, className = "" }) => {
|
||||
if (!text) return null;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`flex space-x-1 justify-center items-center px-2 sm:px-3 py-0.5 sm:py-1 text-white backdrop-blur-md font-medium text-[10px] sm:text-[13px] rounded-md sm:rounded-full transition-all duration-300 hover:bg-white/20 ${className}`}
|
||||
style={bgColor ? { backgroundColor: bgColor } : {}}
|
||||
>
|
||||
{icon && <FontAwesomeIcon icon={icon} className="text-[10px] sm:text-[12px] mr-1" />}
|
||||
<p className="text-[10px] sm:text-[12px]">{text}</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default React.memo(InfoTag);
|
||||
Reference in New Issue
Block a user