import { Show } from "solid-js" import { Maximize2, Minimize2 } from "lucide-solid" interface ExpandButtonProps { expandState: () => "normal" | "expanded" onToggleExpand: (nextState: "normal" | "expanded") => void } export default function ExpandButton(props: ExpandButtonProps) { function handleClick() { const current = props.expandState() props.onToggleExpand(current === "normal" ? "expanded" : "normal") } return ( ) }