manifold/web/hooks/use-admin.ts

13 lines
351 B
TypeScript
Raw Normal View History

import { useUser } from './use-user'
2022-02-09 18:58:33 +00:00
export const useAdmin = () => {
const user = useUser()
const adminIds = [
'igi2zGXsfxYPgB0DJTXVJVmwCOr2', // Austin
'5LZ4LgYuySdL1huCWe7bti02ghx2', // James
'tlmGNz9kjXc2EteizMORes4qvWl2', // Stephen
'IPTOzEqrpkWmEzh6hwvAyY9PqFb2', // Manifold
]
return adminIds.includes(user?.id || '')
2022-02-09 18:58:33 +00:00
}