Files
DefectingCat.github.io/components/post/post-commnet-line.tsx
DefectingCat b19914b68a format code
remove end of line
2023-05-17 14:58:22 +08:00

35 lines
760 B
TypeScript

'use client';
import { useTheme } from 'next-themes';
import Image from 'next/image';
import { memo } from 'react';
const PostCommnetLine = () => {
const { systemTheme, theme } = useTheme();
const currentTheme = theme === 'system' ? systemTheme : theme;
return (
<>
<div className="flex justify-center select-none">
{currentTheme === 'dark' ? (
<Image
src="/images/img/comment-line-dark.svg"
width={300}
height={150}
alt=""
/>
) : (
<Image
src="/images/img/comment-line.svg"
width={300}
height={150}
alt=""
/>
)}
</div>
</>
);
};
export default memo(PostCommnetLine);