All files / src/components/playlist ContentDisclaimer.tsx

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26            2x   2x 19x               2x                
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 Max Boksem. See NOTICE for additional terms under GPLv3 section 7.
 
import { Info } from "lucide-react";
import { openUrl } from "@/lib/openUrl";
 
export const DISCLAIMER_URL = "https://github.com/MaxMB15/Cinette#disclaimer";
 
export const ContentDisclaimer = () => (
	<div className="flex gap-2 text-xs text-muted-foreground">
		<Info className="h-3.5 w-3.5 shrink-0 mt-0.5" aria-hidden="true" />
		<p>
			Cinette doesn't include any channels or content. Only add playlists and accounts you
			have the legal right to use. You're responsible for what you watch with it, and it comes
			as is, without warranty.{" "}
			<button
				type="button"
				onClick={() => openUrl(DISCLAIMER_URL)}
				className="text-primary hover:underline"
			>
				Read the full disclaimer
			</button>
		</p>
	</div>
);