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

@@ -11,4 +11,8 @@
flex-direction: column;
gap: var(--space-4);
}
&[data-first="true"] .content {
padding-top: var(--space-6);
}
}
@@ -2,13 +2,17 @@ import type { ComponentProps } from "react";
import { classNames } from "../../core/ui/classNames";
import "./index.css";
export function Section({
className,
children,
...props
}: ComponentProps<"div">) {
export interface SectionProps extends ComponentProps<"div"> {
first?: boolean;
}
export function Section({ className, children, ...props }: SectionProps) {
return (
<div className={classNames("section", className)} {...props}>
<div
data-first={props.first}
className={classNames("section", className)}
{...props}
>
<div className="content">{children}</div>
</div>
);