mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-31 21:04:26 +01:00
15 lines
435 B
TypeScript
15 lines
435 B
TypeScript
import { A } from "solid-start";
|
|
import { Back } from "~/assets/svg/Back";
|
|
|
|
export function BackLink(props: { href?: string; title?: string }) {
|
|
return (
|
|
<A
|
|
href={props.href ? props.href : "/"}
|
|
class="text-m-red active:text-m-red/80 text-xl font-semibold no-underline md:hidden flex items-center"
|
|
>
|
|
<Back />
|
|
{props.title ? props.title : "Home"}
|
|
</A>
|
|
);
|
|
}
|