import { ThemeProvider, Counter } from "@propeldata/ui-kit";
function ThemeProviderComponent() {
return (
<ThemeProvider
globalChartConfigProps={(chartConfig) => (
(chartConfig.options = {
...chartConfig.options,
plugins: {
...chartConfig.options?.plugins,
tooltip: {
...chartConfig.options?.plugins?.tooltip,
backgroundColor: "#532ab4",
titleColor: "#ffffff",
borderWidth: 3,
},
},
}),
chartConfig
)}
>
<Leaderboard
headers={["Book title", "Total sold"]}
rows={[
["John's way or Highway", "12863002"],
["How to Speak Native Animal", "7865371"],
["Cell Lost in a Sea of Desert", "622027"],
["Flying nowhere special", "462791"],
["The Lean Product Book", "1"],
]}
/>
</ThemeProvider>
);
}