User List
Manage your users and their roles here.
This is the same as{' '} '/users'
You can sign out or manage/delete your account via the
User Profile menu in the top-right corner of the page.
import { useEffect, useState } from 'react' import { createFileRoute, Link, useNavigate, useRouter, } from '@tanstack/react-router' import { IconArrowUpRight, IconLoader2 } from '@tabler/icons-react' import { SignedIn, useAuth, UserButton } from '@clerk/clerk-react' import { ClerkLogo } from '@/assets/clerk-logo' import { Button } from '@/components/ui/button' import { Header } from '@/components/layout/header' import { Main } from '@/components/layout/main' import { LearnMore } from '@/components/learn-more' import { Search } from '@/components/search' import { ThemeSwitch } from '@/components/theme-switch' import { columns } from '@/features/users/components/users-columns' import { UsersDialogs } from '@/features/users/components/users-dialogs' import { UsersPrimaryButtons } from '@/features/users/components/users-primary-buttons' import { UsersTable } from '@/features/users/components/users-table' import UsersProvider from '@/features/users/context/users-context' import { userListSchema } from '@/features/users/data/schema' import { users } from '@/features/users/data/users' export const Route = createFileRoute('/clerk/_authenticated/user-management')({ component: UserManagement, }) function UserManagement() { const [opened, setOpened] = useState(true) const { isLoaded, isSignedIn } = useAuth() if (!isLoaded) { return (
Manage your users and their roles here.
This is the same as{' '} '/users'
You can sign out or manage/delete your account via the
User Profile menu in the top-right corner of the page.
You must be authenticated via Clerk{' '}
This is the same as{' '}
'/users'
.{' '}
You must first sign in using Clerk to access this route.
After signing in, you'll be able to sign out or delete your
account via the User Profile dropdown on this page.
to access this resource.
{countdown > 0 ? `Redirecting to Sign In page in ${countdown}s` : `Redirecting...`}
> )}