Tom Butcher 7dbe7da4ee
Some checks reported errors
farmcontrol/farmcontrol-server/pipeline/head Something is wrong with the build of this commit
Overhauled server code.
2025-12-28 21:46:58 +00:00

35 lines
744 B
JavaScript

import React from "react";
import { Card, Flex, Space } from "antd";
import FileList from "../components/FileList.jsx";
import FileIcon from "../icons/FileIcon";
const Files = ({ files }) => {
return (
<Flex
vertical
size="large"
style={{ width: "100%", height: "100%" }}
gap={"middle"}
>
<Flex gap={"middle"} wrap style={{ flexGrow: 1 }}>
<Card
size="small"
style={{ minWidth: "400px", flexGrow: 1 }}
title={
<Space>
<FileIcon />
Files
</Space>
}
>
<FileList files={files} type="file" />
</Card>
</Flex>
</Flex>
);
};
Files.propTypes = {};
export default Files;