import { NavLink } from "react-router-dom";
const HEADER_PLACEHOLDER = "untitled list"
const HEADER_MIN_WIDTH = 20
const HEADER_MAX_WIDTH = 50
export function AppContainer(props: {
children: React.ReactNode,
}) {
return
{props.children}
}
export function HeadNav(props: {
header: string,
setHeader: (header: string) => void,
}) {
return
}
function Header(props: {
header: string,
setHeader: (header: string) => void,
}) {
const inputFieldGrowPadding = 2
const border = props.header === "" ? "not-print:border-1 border-gray-400 dark:border-zinc-500" : ""
return (
)
}
function Nav() {
const baseClass = "hover:underline text-blue-700 dark:text-blue-300";
const activeClass = "font-bold";
const inactiveClass = "";
const className = ({ isActive }: { isActive: boolean }) =>
`${baseClass} ${isActive ? activeClass : inactiveClass}`
return (
);
}
function clamp(lo: number, x: number, hi: number): number {
return Math.max(Math.min(x, hi), lo)
}