2022-12-17 09:54:27 +01:00
|
|
|
import { useTranslation } from "react-i18next";
|
2023-01-08 15:42:35 +01:00
|
|
|
import { Icon, Icons } from "@/components/Icon";
|
2022-02-25 21:50:43 +01:00
|
|
|
|
2022-02-28 22:00:32 +01:00
|
|
|
export function BrandPill(props: { clickable?: boolean }) {
|
2022-12-17 09:54:27 +01:00
|
|
|
const { t } = useTranslation();
|
|
|
|
|
2022-02-25 21:50:43 +01:00
|
|
|
return (
|
2022-02-28 22:00:32 +01:00
|
|
|
<div
|
2023-01-07 23:44:46 +01:00
|
|
|
className={`flex items-center space-x-2 rounded-full bg-bink-300 bg-opacity-50 px-4 py-2 text-bink-600 ${
|
|
|
|
props.clickable
|
|
|
|
? "transition-[transform,background-color] hover:scale-105 hover:bg-bink-400 hover:text-bink-700 active:scale-95"
|
2022-02-28 22:00:32 +01:00
|
|
|
: ""
|
2023-01-07 23:44:46 +01:00
|
|
|
}`}
|
2022-02-28 22:00:32 +01:00
|
|
|
>
|
2022-02-25 21:50:43 +01:00
|
|
|
<Icon className="text-xl" icon={Icons.MOVIE_WEB} />
|
2023-01-07 23:44:46 +01:00
|
|
|
<span className="font-semibold text-white">{t("global.name")}</span>
|
2022-02-25 21:50:43 +01:00
|
|
|
</div>
|
2022-02-28 22:00:32 +01:00
|
|
|
);
|
2022-02-25 22:03:12 +01:00
|
|
|
}
|