Files
blitzkit/packages/website/src/components/Back/index.tsx
T

19 lines
478 B
TypeScript
Raw Normal View History

2026-08-28 13:55:05 -05:00
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}
/>
);
}