migrate compare and tankopedia loadout to new data-driven components, splitting the old monolithic loadout and compare UI into smaller pieces and adding shared Table, Dialog and Scroller primitives

This commit is contained in:
tresabhi committed 2026-11-14 01:17:38 -06:00
1 parent 287aba853f
commit c311a6ab8b
111 files changed
+4009 -3917

No files matched your search

@@ -1,15 +1,22 @@
import type { ReactNode } from "react";
import type { ComponentProps, ReactNode } from "react";
import { classNames } from "../../ui/classNames";
import styles from "./index.module.css";
interface Props {
interface Props extends ComponentProps<"div"> {
children: ReactNode;
tooltip: string;
side?: "top" | "left";
}
export function Tooltip({ children, tooltip, side = "top" }: Props) {
export function Tooltip({
children,
tooltip,
side = "top",
className,
...props
}: Props) {
return (
<div className={styles.tooltip}>
<div className={classNames(styles.tooltip, className)} {...props}>
<div className={styles.text} data-side={side}>
{tooltip}
</div>