summaryrefslogtreecommitdiff
path: root/src/components/Home.tsx
blob: 489f4c565c0f059b350884c904a6a498a04c2ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react';

import { ClashAPIConfig } from '~/types';

import s0 from './Home.module.scss';
import TrafficNow from './TrafficNow';

type Props = {
  apiConfig: ClashAPIConfig;
  selectedChartStyleIndex: number;
};

export default function Home({ apiConfig, selectedChartStyleIndex }: Props) {
  return (
    <div>
      <div className={s0.root}>
        <TrafficNow apiConfig={apiConfig} selectedChartStyleIndex={selectedChartStyleIndex} />
      </div>
    </div>
  );
}