gitscope
← marzneshin / v0.5.5 / dashboard/src/features/users/components/pills/user-enabled-pill.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/users/components/pills/user-enabled-pill.tsx · TypeScript
Blame Raw
 1import { type FC } from "react";
 2import { BooleanPill } from "@marzneshin/components";
 3import { useTranslation } from "react-i18next";
 4import { UserProp } from "@marzneshin/features/users";
 5
 6export const UserEnabledPill: FC<UserProp> = ({ user }) => {
 7    const { t } = useTranslation();
 8    return (
 9        <BooleanPill
10            active={user.enabled}
11            activeLabel={t('enabled')}
12            inactiveLabel={t('disabled')}
13        />
14    )
15}