mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
adds about and privacy pages
This commit is contained in:
28
www/app/privacy.tsx
Normal file
28
www/app/privacy.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
"use client";
|
||||
import React, { useState } from "react";
|
||||
import FullscreenModal from "./transcripts/fullsreenModal";
|
||||
import PrivacyContent from "./privacyContent";
|
||||
|
||||
type PrivacyProps = {
|
||||
buttonText: string;
|
||||
};
|
||||
|
||||
export default function Privacy({ buttonText }: PrivacyProps) {
|
||||
const [modalOpen, setModalOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
|
||||
onClick={() => setModalOpen(true)}
|
||||
>
|
||||
{buttonText}
|
||||
</button>
|
||||
{modalOpen && (
|
||||
<FullscreenModal close={() => setModalOpen(false)}>
|
||||
<PrivacyContent />
|
||||
</FullscreenModal>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user