import { Center, Group, rem, Table, Text, UnstyledButton } from '@mantine/core'; import { PropsWithChildren } from 'react'; import { TbChevronDown, TbChevronUp, TbSelector } from 'react-icons/tb'; import classes from './users_table.module.css'; interface ThProps extends PropsWithChildren { reversed: boolean; sorted: boolean; onSort(): void; } export function Th({ children, reversed, sorted, onSort }: ThProps) { const Icon = sorted ? (reversed ? TbChevronUp : TbChevronDown) : TbSelector; return (