gitscope
← marzneshin / v0.6.3 / dashboard/src/modules/users/components/pills/user-activated-pill.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/users/components/pills/user-activated-pill.tsx · TypeScript
Blame Raw
 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 UserActivatedPill: FC<UserProp> = ({ user }) => {
 7    const { t } = useTranslation();
 8    return (
 9        <BooleanPill
10            active={user.activated}
11            activeLabel={t('active')}
12            inactiveLabel={t('inactive')}
13        />
14    )
15}