gitscope
← marzneshin / v0.6.2 / dashboard/src/modules/users/components/pills/user-expired-pill.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/users/components/pills/user-expired-pill.tsx · TypeScript
Blame Raw
 1import { type FC } from "react";
 2import { BooleanPill } from "@marzneshin/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}