This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-23 10:49:36 +00:00
|
|
|
import * as React from "react";
|
|
|
|
import { Table, TableBody, TableCell, TableRow } from "../Table";
|
|
|
|
|
|
|
|
export default function ActivityTable({ data }) {
|
|
|
|
return (
|
|
|
|
<Table style={{ tableLayout: "fixed" }}>
|
|
|
|
<TableBody>
|
|
|
|
{data.map(({ name, type, size, uploaded, skylink }) => (
|
|
|
|
<TableRow key={skylink}>
|
|
|
|
<TableCell>{name}</TableCell>
|
2022-02-26 11:50:38 +00:00
|
|
|
<TableCell className="w-[80px]">{type}</TableCell>
|
|
|
|
<TableCell className="w-[80px]" align="right">
|
2022-02-23 10:49:36 +00:00
|
|
|
{size}
|
|
|
|
</TableCell>
|
2022-02-26 11:50:38 +00:00
|
|
|
<TableCell className="w-[180px]">{uploaded}</TableCell>
|
2022-02-23 10:49:36 +00:00
|
|
|
<TableCell>{skylink}</TableCell>
|
|
|
|
</TableRow>
|
|
|
|
))}
|
|
|
|
</TableBody>
|
|
|
|
</Table>
|
|
|
|
);
|
|
|
|
}
|