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 (
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
.
Welcome to pastes.dev. By using this service, you agree to the following terms:
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 {'