Add webapp skeletons
This commit is contained in:
16
matrixgw_frontend/src/widgets/RouterLink.tsx
Normal file
16
matrixgw_frontend/src/widgets/RouterLink.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { type PropsWithChildren } from "react";
|
||||
import { Link } from "react-router";
|
||||
|
||||
export function RouterLink(
|
||||
p: PropsWithChildren<{ to: string; target?: React.HTMLAttributeAnchorTarget }>
|
||||
): React.ReactElement {
|
||||
return (
|
||||
<Link
|
||||
to={p.to}
|
||||
target={p.target}
|
||||
style={{ color: "inherit", textDecoration: "inherit" }}
|
||||
>
|
||||
{p.children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user