mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-22 15:35:07 +01:00
46 lines
826 B
TypeScript
46 lines
826 B
TypeScript
import React, { useState } from "react";
|
|
import tw from "tailwind-styled-components";
|
|
|
|
import RadarChart from "./dashboard/RadarChart";
|
|
import CategorySuccess from "./dashboard/CategorySuccess";
|
|
import CurrentEnv from "./dashboard/CurrentEnv";
|
|
|
|
interface DashboardProps {
|
|
data: any;
|
|
}
|
|
|
|
const Dashboard: React.FC<DashboardProps> = ({ data }) => {
|
|
return (
|
|
<DashboardContainer>
|
|
<CardWrapper>
|
|
<RadarChart />
|
|
</CardWrapper>
|
|
<CardWrapper>
|
|
<CategorySuccess />
|
|
</CardWrapper>
|
|
<CardWrapper>
|
|
<CurrentEnv />
|
|
</CardWrapper>
|
|
</DashboardContainer>
|
|
);
|
|
};
|
|
|
|
export default Dashboard;
|
|
|
|
const DashboardContainer = tw.div`
|
|
w-full
|
|
h-96
|
|
flex
|
|
justify-between
|
|
items-center
|
|
`;
|
|
|
|
const CardWrapper = tw.div`
|
|
w-[30%]
|
|
h-72
|
|
rounded-xl
|
|
shadow-lg
|
|
border
|
|
p-4
|
|
`;
|