Files
blitzkit/packages/website/src/components/Back/index.tsx
T
2026-08-29 13:13:44 -05:00

20 lines
478 B
TypeScript

import type { ComponentProps } from "react";
import { classNames } from "../../ui/classNames";
import styles from "./index.module.css";
interface Props extends ComponentProps<"div"> {}
export function Back({ className, onClick, ...props }: Props) {
return (
<div
className={classNames(styles.back, className)}
onClick={(event) => {
console.log("back");
window.history.back();
onClick?.(event);
}}
{...props}
/>
);
}