movie-web/src/components/layout/BrandPill.tsx

19 lines
648 B
TypeScript
Raw Normal View History

2022-12-13 23:50:13 +01:00
import { Icon, Icons } from "@/components/Icon";
2022-12-17 09:54:27 +01:00
import { useTranslation } from "react-i18next";
2022-02-25 21:50:43 +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 (
<div
2022-12-17 09:54:27 +01:00
className={`flex items-center space-x-2 rounded-full bg-bink-100 bg-opacity-50 px-4 py-2 text-bink-600 ${props.clickable
2022-12-13 23:50:13 +01:00
? "transition-[transform,background-color] hover:scale-105 hover:bg-bink-200 hover:text-bink-700 active:scale-95"
: ""
2022-12-17 09:54:27 +01:00
}`}
>
2022-02-25 21:50:43 +01:00
<Icon className="text-xl" icon={Icons.MOVIE_WEB} />
2022-12-17 09:54:27 +01:00
<span className="font-semibold text-white">{t('global.name')}</span>
2022-02-25 21:50:43 +01:00
</div>
);
2022-02-25 22:03:12 +01:00
}