Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

659 B
Raw Blame
<script lang="ts">
import AnalyticsPage from '$lib/components/AnalyticsPage.svelte';
import type { PageProps } from './$types';

let { data }: PageProps = $props();
let links = {
	All: '/admin/ext-uninstall-reasons/all',
	'Last 30 Days': '/admin/ext-uninstall-reasons/last30days',
	'Last week': '/admin/ext-uninstall-reasons/lastweek',
	'Last Day': '/admin/ext-uninstall-reasons/lastday',
};
</script>

<AnalyticsPage data={data.counts} prevPeriodData={data.prevCounts} title="Most Common Reasons to Uninstall the Chrome Ext" {links} keyLabel="Reason" keyLinkGenerator={(key) => `/admin/ext-uninstall-reasons/${data.timePeriod}/${encodeURIComponent(key)}`}/>