2021-09-03 05:11:21 -07:00
|
|
|
export const Table = ({ children }) => (
|
|
|
|
<table className="min-w-full divide-y divide-th-bkg-2">{children}</table>
|
|
|
|
)
|
|
|
|
|
|
|
|
export const TrHead = ({ children }) => (
|
|
|
|
<tr className="text-th-fgd-3 text-xs">{children}</tr>
|
|
|
|
)
|
|
|
|
|
|
|
|
export const Th = ({ children }) => (
|
|
|
|
<th className="px-6 py-2 text-left font-normal" scope="col">
|
|
|
|
{children}
|
|
|
|
</th>
|
|
|
|
)
|
|
|
|
|
2021-09-06 04:51:18 -07:00
|
|
|
export const TrBody = ({ children, index }) => (
|
2021-09-03 05:11:21 -07:00
|
|
|
<tr
|
|
|
|
className={`border-b border-th-bkg-3
|
2021-09-05 23:22:30 -07:00
|
|
|
${
|
|
|
|
index % 2 === 0
|
|
|
|
? `bg-[rgba(255,255,255,0.03)]`
|
|
|
|
: `bg-[rgba(255,255,255,0.07)]`
|
|
|
|
}
|
2021-09-03 05:11:21 -07:00
|
|
|
`}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</tr>
|
|
|
|
)
|
|
|
|
|
|
|
|
export const Td = ({ children }) => (
|
|
|
|
<td className="px-6 py-3.5 whitespace-nowrap text-sm text-th-fgd-1">
|
|
|
|
{children}
|
|
|
|
</td>
|
|
|
|
)
|