{q.question}
- {q.askedBy}
{new Date(q.date).toLocaleDateString()}
{q.response}
- Jane Austen
import { useState } from 'react'; import type { AdviceQuestion } from '../types'; const SAMPLE_QUESTIONS: AdviceQuestion[] = [ { id: '1', question: "Dear Jane, I find myself in a peculiar situation. A gentleman of considerable fortune has proposed, but while he can offer security and comfort, his conversation leaves much to be desired. My family urges me to accept, but my heart hesitates. What would you advise?", askedBy: "Prudently Pondering", response: "My dear Prudently Pondering, While security in marriage is not to be scorned, neither should it be the sole consideration. A marriage lacking in intellectual companionship may secure your future, but at what cost to your present happiness? As I once wrote through Elizabeth Bennet, 'I am determined that nothing but the very deepest love will induce me into matrimony.' Consider whether you could respect this gentleman enough to spend your days in his company, for comfort without compatibility is but a gilded cage.", date: "2023-11-24" }, { id: '2', question: "Dear Jane, I've fallen deeply in love with someone my family considers beneath our social station. They insist I look higher, but my heart says otherwise. Should I follow my feelings or bow to familial duty?", askedBy: "Torn Between Two Worlds", response: "Dearest Torn, The challenge you face echoes through many a drawing room. While duty to family holds weight, remember that it is you who must live with the consequences of this choice. As Emma Woodhouse learned, true worth lies not in social position but in character. Examine both your heart's inclination and your suitor's merit - if you find them equally sound, perhaps it is your family's understanding that needs elevation, not your choice of partner.", date: "2023-11-23" } ]; const Advice = () => { const [showSubmitForm, setShowSubmitForm] = useState(false); const [newQuestion, setNewQuestion] = useState({ question: '', askedBy: '' }); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); // In a real app, this would send the question to a backend setShowSubmitForm(false); setNewQuestion({ question: '', askedBy: '' }); }; return (
Seeking counsel in matters of the heart? Let Jane Austen's timeless wisdom guide you through your romantic predicaments.
- {q.askedBy}
{new Date(q.date).toLocaleDateString()}
{q.response}
- Jane Austen