blob: 48a1f8e1900e8fd3fb42d3519b97f7a78d4744bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { Suspense } from "react";
import { AddFeedForm } from "../components/AddFeedForm";
import { ErrorBoundary } from "../components/ErrorBoundary";
import { FeedList } from "../components/FeedList";
import { LoadingSpinner } from "../components/LoadingSpinner";
export function Settings() {
return (
<div className="mx-auto max-w-3xl space-y-10">
<section>
<AddFeedForm />
</section>
<section>
<h2 className="mb-4 text-sm font-semibold uppercase tracking-wide text-stone-900">
Your Feeds
</h2>
<ErrorBoundary>
<Suspense fallback={<LoadingSpinner />}>
<FeedList />
</Suspense>
</ErrorBoundary>
</section>
</div>
);
}
|