---
import { getCategoryList, getSortedPostsList, getTagList } from "@utils/content";
import StatsCharts from "./statistics.svelte";


const posts = await getSortedPostsList();
const categories = await getCategoryList();
const tags = await getTagList();

interface Props {
    class?: string;
    style?: string;
    side?: string;
}

const { class: className, style, side } = Astro.props;
---

<StatsCharts client:load {posts} {categories} {tags} class={className} style={style} {side} />