RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/GenericTable/GenericTableHeader.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { TableHead } from '@rocket.chat/fuselage';
import type { ComponentPropsWithoutRef } from 'react';
import React from 'react';

import { GenericTableRow } from './GenericTableRow';

type GenericTableHeaderProps = ComponentPropsWithoutRef<typeof TableHead>;

export const GenericTableHeader = ({ children, ...props }: GenericTableHeaderProps) => (
    <TableHead {...props}>
        <GenericTableRow>{children}</GenericTableRow>
    </TableHead>
);