|
1 | 1 | export type PostData = { id: number; title: string; body: string; userId: number }; |
2 | 2 |
|
3 | | -export const mockPosts: PostData[] = [ |
4 | | - { |
5 | | - id: 0, |
6 | | - userId: 0, |
7 | | - title: 'Exploring the Future of AI', |
8 | | - body: 'Artificial intelligence is transforming industries, from healthcare to finance. This post explores the latest advancements and future possibilities.', |
9 | | - }, |
10 | | - { |
11 | | - id: 1, |
12 | | - userId: 0, |
13 | | - title: '10 Tips for Better Time Management', |
14 | | - body: 'Managing your time effectively can boost productivity and reduce stress. Here are ten practical tips to help you stay on top of your tasks.', |
15 | | - }, |
16 | | - { |
17 | | - id: 2, |
18 | | - userId: 0, |
19 | | - title: "A Beginner's Guide to Gardening", |
20 | | - body: 'Starting a garden can be both fun and rewarding. This guide covers the basics, from choosing plants to maintaining healthy soil.', |
21 | | - }, |
22 | | - { |
23 | | - id: 3, |
24 | | - userId: 0, |
25 | | - title: 'Understanding Cryptocurrency', |
26 | | - body: 'Cryptocurrency has gained popularity as an alternative form of investment. Learn how it works, its risks, and potential rewards.', |
27 | | - }, |
28 | | - { |
29 | | - id: 4, |
30 | | - userId: 0, |
31 | | - title: 'Top 5 Travel Destinations for 2025', |
32 | | - body: 'Looking for your next adventure? Here are five must-visit destinations for 2025, each offering unique experiences and breathtaking views.', |
33 | | - }, |
34 | | - { |
35 | | - id: 5, |
36 | | - userId: 0, |
37 | | - title: 'The Benefits of a Plant-Based Diet', |
38 | | - body: 'Discover the health benefits of a plant-based diet and how to get started.', |
39 | | - }, |
40 | | - { |
41 | | - id: 6, |
42 | | - userId: 0, |
43 | | - title: 'How to Start a Successful Blog', |
44 | | - body: 'Learn the steps to create and grow a successful blog from scratch.', |
45 | | - }, |
46 | | - { |
47 | | - id: 7, |
48 | | - userId: 0, |
49 | | - title: 'The Future of Remote Work', |
50 | | - body: 'Explore the trends and predictions for the future of remote work.', |
51 | | - }, |
52 | | - { |
53 | | - id: 8, |
54 | | - userId: 0, |
55 | | - title: 'Tips for Staying Productive While Working from Home', |
56 | | - body: 'Boost your productivity with these tips for working from home.', |
57 | | - }, |
58 | | - { |
59 | | - id: 9, |
60 | | - userId: 0, |
61 | | - title: 'The Importance of Mental Health Awareness', |
62 | | - body: 'Understand the importance of mental health awareness and how to support it.', |
63 | | - }, |
64 | | - { |
65 | | - id: 10, |
66 | | - userId: 0, |
67 | | - title: 'A Guide to Sustainable Living', |
68 | | - body: 'Learn how to live a more sustainable and eco-friendly lifestyle.', |
69 | | - }, |
70 | | - { |
71 | | - id: 11, |
72 | | - userId: 0, |
73 | | - title: 'The Basics of Personal Finance', |
74 | | - body: 'Get started with personal finance with these basic tips and strategies.', |
75 | | - }, |
76 | | - { |
77 | | - id: 12, |
78 | | - userId: 0, |
79 | | - title: 'How to Improve Your Public Speaking Skills', |
80 | | - body: 'Enhance your public speaking skills with these practical tips.', |
81 | | - }, |
82 | | - { |
83 | | - id: 13, |
84 | | - userId: 0, |
85 | | - title: 'The Benefits of Regular Exercise', |
86 | | - body: 'Discover the physical and mental benefits of regular exercise.', |
87 | | - }, |
88 | | - { |
89 | | - id: 14, |
90 | | - userId: 0, |
91 | | - title: 'How to Build a Strong Personal Brand', |
92 | | - body: 'Learn the steps to create and maintain a strong personal brand.', |
93 | | - }, |
94 | | -]; |
| 3 | +export function createMockPosts() { |
| 4 | + const mockPosts: PostData[] = [ |
| 5 | + { |
| 6 | + id: 0, |
| 7 | + userId: 0, |
| 8 | + title: 'Exploring the Future of AI', |
| 9 | + body: 'Artificial intelligence is transforming industries, from healthcare to finance. This post explores the latest advancements and future possibilities.', |
| 10 | + }, |
| 11 | + { |
| 12 | + id: 1, |
| 13 | + userId: 0, |
| 14 | + title: '10 Tips for Better Time Management', |
| 15 | + body: 'Managing your time effectively can boost productivity and reduce stress. Here are ten practical tips to help you stay on top of your tasks.', |
| 16 | + }, |
| 17 | + { |
| 18 | + id: 2, |
| 19 | + userId: 0, |
| 20 | + title: "A Beginner's Guide to Gardening", |
| 21 | + body: 'Starting a garden can be both fun and rewarding. This guide covers the basics, from choosing plants to maintaining healthy soil.', |
| 22 | + }, |
| 23 | + { |
| 24 | + id: 3, |
| 25 | + userId: 0, |
| 26 | + title: 'Understanding Cryptocurrency', |
| 27 | + body: 'Cryptocurrency has gained popularity as an alternative form of investment. Learn how it works, its risks, and potential rewards.', |
| 28 | + }, |
| 29 | + { |
| 30 | + id: 4, |
| 31 | + userId: 0, |
| 32 | + title: 'Top 5 Travel Destinations for 2025', |
| 33 | + body: 'Looking for your next adventure? Here are five must-visit destinations for 2025, each offering unique experiences and breathtaking views.', |
| 34 | + }, |
| 35 | + { |
| 36 | + id: 5, |
| 37 | + userId: 0, |
| 38 | + title: 'The Benefits of a Plant-Based Diet', |
| 39 | + body: 'Discover the health benefits of a plant-based diet and how to get started.', |
| 40 | + }, |
| 41 | + { |
| 42 | + id: 6, |
| 43 | + userId: 0, |
| 44 | + title: 'How to Start a Successful Blog', |
| 45 | + body: 'Learn the steps to create and grow a successful blog from scratch.', |
| 46 | + }, |
| 47 | + { |
| 48 | + id: 7, |
| 49 | + userId: 0, |
| 50 | + title: 'The Future of Remote Work', |
| 51 | + body: 'Explore the trends and predictions for the future of remote work.', |
| 52 | + }, |
| 53 | + { |
| 54 | + id: 8, |
| 55 | + userId: 0, |
| 56 | + title: 'Tips for Staying Productive While Working from Home', |
| 57 | + body: 'Boost your productivity with these tips for working from home.', |
| 58 | + }, |
| 59 | + { |
| 60 | + id: 9, |
| 61 | + userId: 0, |
| 62 | + title: 'The Importance of Mental Health Awareness', |
| 63 | + body: 'Understand the importance of mental health awareness and how to support it.', |
| 64 | + }, |
| 65 | + { |
| 66 | + id: 10, |
| 67 | + userId: 0, |
| 68 | + title: 'A Guide to Sustainable Living', |
| 69 | + body: 'Learn how to live a more sustainable and eco-friendly lifestyle.', |
| 70 | + }, |
| 71 | + { |
| 72 | + id: 11, |
| 73 | + userId: 0, |
| 74 | + title: 'The Basics of Personal Finance', |
| 75 | + body: 'Get started with personal finance with these basic tips and strategies.', |
| 76 | + }, |
| 77 | + { |
| 78 | + id: 12, |
| 79 | + userId: 0, |
| 80 | + title: 'How to Improve Your Public Speaking Skills', |
| 81 | + body: 'Enhance your public speaking skills with these practical tips.', |
| 82 | + }, |
| 83 | + { |
| 84 | + id: 13, |
| 85 | + userId: 0, |
| 86 | + title: 'The Benefits of Regular Exercise', |
| 87 | + body: 'Discover the physical and mental benefits of regular exercise.', |
| 88 | + }, |
| 89 | + { |
| 90 | + id: 14, |
| 91 | + userId: 0, |
| 92 | + title: 'How to Build a Strong Personal Brand', |
| 93 | + body: 'Learn the steps to create and maintain a strong personal brand.', |
| 94 | + }, |
| 95 | + ]; |
| 96 | + |
| 97 | + return mockPosts; |
| 98 | +} |
0 commit comments