'init'
This commit is contained in:
8
app/providers/SystemAccountsProvider/useSystemAccount.ts
Normal file
8
app/providers/SystemAccountsProvider/useSystemAccount.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
import { SystemUserInformation } from "./SystemAccountsProvider";
|
||||
import { useSystemAccounts } from "./useSystemAccounts";
|
||||
|
||||
export function useSystemAccount(username: string) : SystemUserInformation | undefined {
|
||||
const systemAccounts = useSystemAccounts();
|
||||
return systemAccounts.find((v) => v.username == username);
|
||||
}
|
||||
Reference in New Issue
Block a user