mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-28 10:26:12 +01:00
Feedback button
This commit is contained in:
24
src/components/feedback-button/feedback-button-email.tsx
Normal file
24
src/components/feedback-button/feedback-button-email.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Heading } from '@react-email/heading'
|
||||
import { Html } from '@react-email/html'
|
||||
import { Preview } from '@react-email/preview'
|
||||
import { Text } from '@react-email/text'
|
||||
|
||||
type Props = {
|
||||
email?: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export function FeedbackButtonEmail({ email, message }: Props) {
|
||||
return (
|
||||
<Html>
|
||||
<Preview>New feedback from {email || 'anonymous user'}</Preview>
|
||||
<Heading>New feedback on Spliit</Heading>
|
||||
<Text>
|
||||
Email address: <strong>{email || 'not provided'}</strong>
|
||||
</Text>
|
||||
<pre style={{ padding: 16, borderLeft: '2px solid lightgray' }}>
|
||||
{message}
|
||||
</pre>
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user