import React, { useState } from 'react'; import { Subuser } from '@/state/server/subusers'; import { ServerContext } from '@/state/server'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faPencilAlt } from '@fortawesome/free-solid-svg-icons/faPencilAlt'; import { faTrashAlt } from '@fortawesome/free-solid-svg-icons/faTrashAlt'; import ConfirmationModal from '@/components/elements/ConfirmationModal'; import RemoveSubuserButton from '@/components/server/users/RemoveSubuserButton'; interface Props { subuser: Subuser; } export default ({ subuser }: Props) => { const appendSubuser = ServerContext.useStoreActions(actions => actions.subusers.appendSubuser); return (
{subuser.email}