aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/pages/timeline/TimelinePostCard.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-08-01 00:29:35 +0800
committercrupest <crupest@outlook.com>2023-08-01 00:29:35 +0800
commite6ccc0174a86a0ade240e6551228598cd81f984b (patch)
treed495dff9658c23de22191c4532e14016a6fb96a8 /FrontEnd/src/pages/timeline/TimelinePostCard.tsx
parent710ff9d3d2e55113798c39b0595f8f71b12091ef (diff)
downloadtimeline-e6ccc0174a86a0ade240e6551228598cd81f984b.tar.gz
timeline-e6ccc0174a86a0ade240e6551228598cd81f984b.tar.bz2
timeline-e6ccc0174a86a0ade240e6551228598cd81f984b.zip
...
Diffstat (limited to 'FrontEnd/src/pages/timeline/TimelinePostCard.tsx')
-rw-r--r--FrontEnd/src/pages/timeline/TimelinePostCard.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/FrontEnd/src/pages/timeline/TimelinePostCard.tsx b/FrontEnd/src/pages/timeline/TimelinePostCard.tsx
new file mode 100644
index 00000000..83479349
--- /dev/null
+++ b/FrontEnd/src/pages/timeline/TimelinePostCard.tsx
@@ -0,0 +1,22 @@
+import { ReactNode } from "react";
+import classNames from "classnames";
+
+import Card from "@/views/common/Card";
+
+import "./TimelinePostCard.css";
+
+export interface TimelinePostEditCardProps {
+ className?: string;
+ children?: ReactNode;
+}
+
+export default function TimelinePostCard({
+ className,
+ children,
+}: TimelinePostEditCardProps) {
+ return (
+ <Card className={classNames("timeline-post-card", className)}>
+ {children}
+ </Card>
+ );
+}