mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
629 B
TypeScript
26 lines
629 B
TypeScript
import React from 'react';
|
|
|
|
import {
|
|
// Table,
|
|
// Thead,
|
|
// Tbody,
|
|
// Tfoot,
|
|
Td as ChakraTd,
|
|
Th as ChakraTh,
|
|
// Tr,
|
|
// TableContainer,
|
|
} from '@chakra-ui/react';
|
|
|
|
const firstLastStyle = {
|
|
_first: { paddingLeft: 0 },
|
|
_last: { paddingRight: 0 },
|
|
}
|
|
|
|
export const Th = ({ children }: {children?: React.ReactNode}) => {
|
|
return <ChakraTh textTransform="none" fontSize="sm" fontWeight="normal" { ...firstLastStyle }>{ children }</ChakraTh>
|
|
};
|
|
|
|
export const Td = ({ children }: {children?: React.ReactNode}) => {
|
|
return <ChakraTd fontSize="md" { ...firstLastStyle } verticalAlign="top">{ children }</ChakraTd>
|
|
};
|