import React from 'react'; import { SubuserPermission } from '@/state/server/subusers'; import { useStoreState } from 'easy-peasy'; import { ApplicationStore } from '@/state'; import { useTranslation } from 'react-i18next'; interface Props { defaultPermissions: SubuserPermission[]; } export default ({ defaultPermissions }: Props) => { const { t } = useTranslation('server.users'); const permissions = useStoreState((state: ApplicationStore) => state.permissions.data); return (