UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

12 lines (11 loc) 1.54 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { ExternalLink, MessageSquare } from 'lucide-react'; import Button from '../components/ui/Button'; import Card from '../components/ui/Card'; import { openFeedbackForm } from './utils'; export const FeedbackPage = ({ config, userData, onNavigateBack, title = 'Share Your Feedback', description = 'We value your feedback! Help us improve by sharing your thoughts and suggestions.', buttonText = 'Open Feedback Form', }) => { const handleOpenFeedback = () => { openFeedbackForm(config, userData, onNavigateBack); }; return (_jsx("div", { className: "min-h-screen flex items-center justify-center p-4", children: _jsx(Card, { className: "w-full max-w-md", children: _jsxs("div", { className: "p-6 text-center", children: [_jsx("div", { className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-blue-100 dark:bg-blue-900", children: _jsx(MessageSquare, { className: "h-6 w-6 text-blue-600 dark:text-blue-300" }) }), _jsx("h1", { className: "text-xl font-semibold mb-2", children: title }), _jsx("p", { className: "text-gray-600 dark:text-gray-400 mb-6", children: description }), _jsxs("div", { className: "space-y-4", children: [_jsxs(Button, { onClick: handleOpenFeedback, className: "w-full", size: "lg", children: [_jsx(ExternalLink, { className: "mr-2 h-4 w-4" }), buttonText] }), onNavigateBack && (_jsx(Button, { variant: "outline", onClick: onNavigateBack, className: "w-full", children: "Go Back" }))] })] }) }) })); };