Skip to content

Instantly share code, notes, and snippets.

@MariusBongarts
Created February 1, 2023 07:28
Show Gist options
  • Save MariusBongarts/9435601522c696ed612226d6dd891a46 to your computer and use it in GitHub Desktop.
Save MariusBongarts/9435601522c696ed612226d6dd891a46 to your computer and use it in GitHub Desktop.
import React from "react";
import { useChromeHistorySearch } from "../hooks/useChromeHistorySearch";
import { History } from "./History";
interface DashboardProps {}
const query = { text: "", maxResults: 100 };
export const Dashboard: React.FC<DashboardProps> = () => {
const mostRecentItems = useChromeHistorySearch(query);
return (
<div>
<h1>Chrome History Dashboard 📊</h1>
<History items={mostRecentItems} />
</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment