A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
1import {
2 Dialog,
3 DialogContent,
4 DialogDescription,
5 DialogFooter,
6 DialogHeader,
7 DialogTitle,
8} from "@/components/ui/dialog"
9
10import { Button } from "@/components/ui/button"
11
12interface PrivacyModalProps {
13 isOpen: boolean;
14 onClose: () => void;
15}
16
17export function PrivacyModal({ isOpen, onClose }: PrivacyModalProps) {
18 return (
19 <Dialog open={isOpen}>
20 <DialogContent className="max-w-md">
21 <DialogHeader>
22 <DialogTitle>Privacy Policy</DialogTitle>
23 <DialogDescription>
24 Simplelink's data collection and usage policies
25 </DialogDescription>
26 </DialogHeader>
27 <div className="text-sm text-muted-foreground">
28 <p>Simplelink shortens URLs and tracks only two pieces of information: the time each link is clicked and the source of the link through a ?source= query tag. We do not collect any personal information such as IP addresses or any other data.</p>
29 </div>
30 <DialogFooter>
31 <Button variant="outline" onClick={onClose}>
32 Close
33 </Button>
34 </DialogFooter>
35 </DialogContent>
36 </Dialog>
37 )
38 }
39