Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 7x 210x | import {
Text as TextComponent,
TextVariant,
TextColor,
FontWeight,
} from '@metamask/design-system-react';
import type { PropsWithChildren } from 'react';
export const TableHeader: React.FC<
PropsWithChildren<{
first?: boolean;
variant?: TextVariant;
}>
> = ({ first, variant = TextVariant.BodyXs, children }) => {
return (
<th
className={`text-left py-2 px-3 ${first ? 'border-r border-muted' : ''}`}
>
<TextComponent
variant={variant}
fontWeight={
variant === TextVariant.BodyXs
? FontWeight.Medium
: FontWeight.Regular
}
color={TextColor.TextMuted}
>
{children}
</TextComponent>
</th>
);
};
|