Add FAQ guide and contextual help links
This commit is contained in:
1 parent
33f0170927
commit
3b6f35e31a
11 files changed
+388
-48
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { CircleHelp } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
type HelpLinkProps = {
|
||||
anchor: string;
|
||||
label?: string;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function HelpLink({ anchor, label = "Hilfe öffnen", className }: HelpLinkProps) {
|
||||
return (
|
||||
<Button asChild variant="ghost" size="icon-sm" className={className} title={label}>
|
||||
<a href={`/faq#${anchor}`} aria-label={label}>
|
||||
<CircleHelp className="size-4" />
|
||||
</a>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user