import { useCallback, useState } from 'react'; import styled from 'styled-components'; import Button from './Button.tsx'; const CloseButton = ({ setVisible, }: { setVisible: (show: boolean) => void; }) => { const close = useCallback(() => { setVisible(false); }, [setVisible]); return (
); }; export default function About({ setVisible, }: { setVisible: (show: boolean) => void; }) { const [showTos, setShowTos] = useState(false); if (showTos) { return ; } return ( {'{paste}'}

paste is a simple web app for writing & sharing code. It's a different take on conventional pastebin sites like pastebin.com or hastebin.

{window.location.hostname === 'pastes.dev' && ( <>

pastes.dev is the official, publicly accessible paste instance, and can be used by anyone, subject to the{' '} { setShowTos(true); e.preventDefault(); }} > Terms of Service .

To access pastes.dev programmatically, please use the{' '} API . :)

Please{' '} { setShowTos(true); e.preventDefault(); }} > report {' '} illegal, malicious, or abusive content so it can be removed.

)}

paste {' '} is free & open source on GitHub.
Copyright © 2021-{new Date().getFullYear()}{' '} lucko {' '} & other paste{' '} contributors .

); } const Tos = ({ setVisible }: { setVisible: (show: boolean) => void }) => { return (

Terms of Service

Welcome to pastes.dev. By using this service, you agree to the following terms:

  1. No Illegal Use: You may not use pastes.dev to share, store, or distribute any content that is illegal, harmful, or violates any laws or regulations.
  2. No Malicious Content: Do not upload or share content intended to harm others, including but not limited to malware, phishing links, or personal data without consent.
  3. Content Responsibility: You are solely responsible for the content you post. We do not review content and are not liable for what users choose to share.
  4. Moderation: We reserve the right to remove any content at our discretion, and to restrict or terminate access to the service for abuse or violations of these terms.
  5. No Guarantees: This service is provided "as is" with no warranties. We do not guarantee uptime, data retention, or availability.

By using pastes.dev, you accept these terms. If you do not agree, please do not use the service.

Reporting Abuse
If you encounter illegal or malicious content, please report it by email to report-abuse {''} pastes.dev.

); }; const AboutPanel = styled.div` position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 99; padding: 10px; max-width: 650px; max-height: 100vh; overflow-y: auto; color: ${props => props.theme.primary}; background-color: ${props => props.theme.secondary}; `; const BannerContainer = styled.div` display: flex; justify-content: center; `; const Banner = styled.div` background-color: ${props => props.theme.background}; color: ${props => props.theme.logo}; border-radius: 20px; font-size: 70px; letter-spacing: -5px; padding: 10px; font-weight: bold; `;