jattac.react.recents
Version:
A React component and utility for tracking and displaying recent browser locations and URLs.
14 lines (13 loc) • 327 B
TypeScript
import React from "react";
export interface Recent {
windowTitle: string;
url: string;
lastVisited: string;
}
export interface RecentsProps {
onBeforeRemove?: (items: Recent[]) => boolean;
namespace?: string;
maxRecents?: number;
}
declare const Recents: React.FC<RecentsProps>;
export default Recents;