Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,26 @@
import { FeatherChevronDown, FeatherChevronUp } from "@subframe/core"
import { useTranslation } from "react-i18next"
interface Props {
open: boolean
setOpen: React.Dispatch<React.SetStateAction<boolean>>
}
// Unlike the other icons in this folder, this is a stateful toggle button (not a
// bare `{ className }` icon). It keeps its public `{ open, setOpen }` API so its
// only call site (tables/CollapsibleRow) stays unchanged, but renders Subframe
// Feather chevrons instead of the previous hand-authored SVGs.
export default function OpenCloseArrowIcon({ open, setOpen }: Props) {
const { t } = useTranslation()
const Chevron = open ? FeatherChevronUp : FeatherChevronDown
return (
<button
type="button"
onClick={() => setOpen(!open)}
aria-label={open ? t("shared.collapse") : t("shared.expand")}
className="hover:bg-secondary hover:border-border text-muted-foreground bg-background inline-flex w-full justify-center rounded-md border border-transparent p-1 text-sm font-medium hover:shadow-2xs focus:outline-hidden"
>
<Chevron className="text-muted-foreground inline-flex size-5 shrink-0 [&>svg]:size-full" />
</button>
)
}