https://dev.kronoz.win/r/marzneshin.git
1import { type FC } from "react";
2import { BooleanPill } from "@marzneshin/common/components";
3import { useTranslation } from "react-i18next";
4import { UserProp } from "@marzneshin/modules/users";
5
6export const UserExpiredPill: FC<UserProp> = ({ user }) => {
7 const { t } = useTranslation();
8 return (
9 <BooleanPill
10 active={!user.expired}
11 activeLabel={t('valid')}
12 inactiveLabel={t('finished')}
13 />
14 )
15}