"use client";
import useReactApexChart from "../../hook/useReactApexChart";
import dynamic from "next/dynamic";
const ReactApexChart = dynamic(() => import("react-apexcharts"), {
  ssr: false,
});

const DefaultLineChart = () => {
  let { defaultLineChartSeries, defaultLineChartOptions } = useReactApexChart();
  return (
    <div className='col-md-6'>
      <div className='card h-100 p-0'>
        <div className='card-header border-bottom bg-base py-16 px-24'>
          <h6 className='text-lg fw-semibold mb-0'>Default Line Chart</h6>
        </div>
        <div className='card-body p-24'>
          <ReactApexChart
            id='defaultLineChart'
            className='apexcharts-tooltip-style-1'
            options={defaultLineChartOptions}
            series={defaultLineChartSeries}
            type='area'
            height={264}
          />
        </div>
      </div>
    </div>
  );
};

export default DefaultLineChart;
