diff --git a/components/clinic/components/about/TextDetail.js b/components/clinic/components/about/TextDetail.js
new file mode 100644
index 0000000..81fdae1
--- /dev/null
+++ b/components/clinic/components/about/TextDetail.js
@@ -0,0 +1,39 @@
+import { useState } from "react";
+import { Button } from "@mui/material";
+import MultilineLoading from "@/app/component/loading/Multiline";
+
+function TextDetail({ data }) {
+ const [isMore, setIsMore] = useState(false);
+
+ return (
+
+
+ 180 && isMore
+ ? "after:bg-transparent max-h-screen"
+ : data?.caption?.length > 180 &&
+ "after:bg-[linear-gradient(transparent,#FAFAFA)] max-h-[200px]"
+ }
+ `}
+ dangerouslySetInnerHTML={{ __html: data?.caption }}
+ >
+
+ {data?.caption?.length > 180 && (
+
+ )}
+
+ );
+}
+
+export default TextDetail;
diff --git a/components/clinic/components/about/index.js b/components/clinic/components/about/index.js
index f26ba41..3f3255d 100644
--- a/components/clinic/components/about/index.js
+++ b/components/clinic/components/about/index.js
@@ -1,45 +1,17 @@
-import { useState } from "react";
-
import ListBime from "./ListBime";
import Services from "./Services";
import Images from "./images/Images";
-import { Button } from "@mui/material";
import Specialties from "./Specialties";
import ContentDetail from "./ContentDetail";
-import MultilineLoading from "@/app/component/loading/Multiline";
+import TextDetail from "./TextDetail";
function About({ data }) {
- const [isMore, setIsMore] = useState(false);
console.log(data);
-
return (
-
-
-
-
-
-
+