Commit faaf24ea by Arjun Jhukal

minor changes

parent c2fa9a0f
public/assets/images/avatar-6.png

17.7 KB | W: | H:

public/assets/images/avatar-6.png

187 KB | W: | H:

public/assets/images/avatar-6.png
public/assets/images/avatar-6.png
public/assets/images/avatar-6.png
public/assets/images/avatar-6.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,7 +2,6 @@
import { useGetChatbotSettingQuery } from '@/services/settingApi';
import { Button, Typography } from '@mui/material';
import Image from 'next/image';
import GlassWrapper from '../molecules/GlassWrapper';
export default function Chatbot() {
const { data } = useGetChatbotSettingQuery();
......@@ -13,47 +12,45 @@ export default function Chatbot() {
const isVideo = fileUrl?.toLowerCase().endsWith(".mp4");
return (
<GlassWrapper>
<Button
className=" max-w-fit px-8!"
variant="text"
color="primary"
// fullWidth
LinkComponent={"a"}
href={data?.data?.chatbot_link || ""}
target='_black'
sx={{
justifyContent: "start"
}}
>
<div className=" w-full flex! justify-start! items-center! gap-4">
{fileUrl && (
isVideo ? (
<video
autoPlay
loop
muted
playsInline
className="w-11 h-11 rounded-full object-cover"
>
<source src={fileUrl} type="video/mp4" />
</video>
) : (
<Image
src={fileUrl}
alt="chatbot"
width={44}
height={44}
className="rounded-full object-cover"
/>
)
)}
<Button
className=" max-w-fit px-8!"
variant="contained"
color="primary"
fullWidth
LinkComponent={"a"}
href={data?.data?.chatbot_link || ""}
target='_black'
sx={{
justifyContent: "start"
}}
>
<div className=" w-full flex! justify-start! items-center! gap-4">
{fileUrl && (
isVideo ? (
<video
autoPlay
loop
muted
playsInline
className="w-11 h-11 rounded-full object-cover"
>
<source src={fileUrl} type="video/mp4" />
</video>
) : (
<Image
src={fileUrl}
alt="chatbot"
width={44}
height={44}
className="rounded-full object-cover"
/>
)
)}
<Typography variant="subtitle2">
{label}
</Typography>
</div>
</Button>
</GlassWrapper>
<Typography variant="subtitle2">
{label}
</Typography>
</div>
</Button>
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment