aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/BorderedContainerWithCaption.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-15 21:10:51 +0900
committernsfisis <nsfisis@gmail.com>2025-03-15 21:10:51 +0900
commit35d1be206c6be675d92839cfa209fceb5d1b6db9 (patch)
tree31734172b78f11272c5267bf7bae1541411ce553 /frontend/app/components/BorderedContainerWithCaption.tsx
parent27168df997c298e871d34e58fdc726bf2e8a4954 (diff)
downloadiosdc-japan-2025-albatross-35d1be206c6be675d92839cfa209fceb5d1b6db9.tar.gz
iosdc-japan-2025-albatross-35d1be206c6be675d92839cfa209fceb5d1b6db9.tar.zst
iosdc-japan-2025-albatross-35d1be206c6be675d92839cfa209fceb5d1b6db9.zip
feat(frontend): show sample code in watch page
Diffstat (limited to 'frontend/app/components/BorderedContainerWithCaption.tsx')
-rw-r--r--frontend/app/components/BorderedContainerWithCaption.tsx21
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/app/components/BorderedContainerWithCaption.tsx b/frontend/app/components/BorderedContainerWithCaption.tsx
new file mode 100644
index 0000000..0fee425
--- /dev/null
+++ b/frontend/app/components/BorderedContainerWithCaption.tsx
@@ -0,0 +1,21 @@
+import React from "react";
+import BorderedContainer from "./BorderedContainer";
+
+type Props = {
+ caption: string;
+ children: React.ReactNode;
+};
+
+export default function BorderedContainerWithCaption({
+ caption,
+ children,
+}: Props) {
+ return (
+ <BorderedContainer>
+ <div className="flex flex-col gap-4">
+ <h2 className="text-center text-lg">{caption}</h2>
+ {children}
+ </div>
+ </BorderedContainer>
+ );
+}