mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: recently viewed
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user