feat: recently viewed

This commit is contained in:
TrèsAbhi committed 2026-01-18 17:55:38 -06:00
1 parent 7399c402af
commit 49f84db473
8 files changed
+86 -7

No files matched your search

@@ -0,0 +1,9 @@
.recent {
.list {
min-height: var(--space-7);
display: flex;
align-items: center;
justify-content: center;
}
}
@@ -0,0 +1,34 @@
import { LocaleProvider } from "../../hooks/useLocale";
import { useStrings } from "../../hooks/useStrings";
import { Heading } from "../Heading";
import { Section } from "../Section";
import { Text } from "../Text";
import styles from "./index.module.css";
interface Props {
locale: string;
skeleton?: boolean;
}
export function RecentItems({ locale, skeleton }: Props) {
return (
<LocaleProvider locale={locale}>
<Content />
</LocaleProvider>
);
}
function Content() {
const strings = useStrings();
return (
<Section first className={styles.recent}>
<Heading size="3">{strings.recent.title}</Heading>
<div className={styles.list}>
<Text lowContrast size="minor">
{strings.recent.no_recent}
</Text>
</div>
</Section>
);
}