Add 'apps/web/' from commit '1e7174fa604b11e7c3983cd8ad01c596f6e77e96'
git-subtree-dir: apps/web git-subtree-mainline:068a51b46bgit-subtree-split:1e7174fa60
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "~/lib/utils";
|
||||
|
||||
type LegalLinksProps = {
|
||||
className?: string;
|
||||
linkClassName?: string;
|
||||
};
|
||||
|
||||
export function LegalLinks({ className, linkClassName }: LegalLinksProps) {
|
||||
const linkStyles = cn(
|
||||
"text-foreground font-medium hover:underline",
|
||||
linkClassName,
|
||||
);
|
||||
|
||||
return (
|
||||
<span className={className}>
|
||||
<Link href="/terms" className={linkStyles}>
|
||||
Terms of Service
|
||||
</Link>
|
||||
{" and "}
|
||||
<Link href="/privacy" className={linkStyles}>
|
||||
Privacy Policy
|
||||
</Link>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
type LegalAgreementNoticeProps = {
|
||||
action: string;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function LegalAgreementNotice({
|
||||
action,
|
||||
className,
|
||||
}: LegalAgreementNoticeProps) {
|
||||
return (
|
||||
<p className={cn("text-muted-foreground text-center text-xs", className)}>
|
||||
By {action}, you agree to our <LegalLinks />.
|
||||
</p>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user