import { A } from "@solidjs/router" import { Show } from "solid-js" type BackLinkProps = { // Omit to pop the previous history entry instead of navigating to a fixed // route — for pages reachable from several places, "back" should land the // user wherever they came from. href?: string label: string } export default function BackLink(props: BackLinkProps) { return (
history.back()} class="text-gray-500 hover:text-gray-700"> ← {props.label} } > {(href) => ← {props.label}}
) }