File size: 826 Bytes
3382f47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
`;