mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-17 17:35:31 -04:00
remove unnecessary PropsWithChildren
This commit is contained in:
@@ -3,15 +3,13 @@ import { useTheme } from "next-themes";
|
||||
import classNames from "classnames";
|
||||
import { Giscus } from "@giscus/react";
|
||||
import { giscusConfig } from "../../lib/config";
|
||||
import type { PropsWithChildren } from "react";
|
||||
import type { GiscusProps } from "@giscus/react";
|
||||
|
||||
import styles from "./Comments.module.css";
|
||||
|
||||
type CommentsProps = JSX.IntrinsicElements["div"] &
|
||||
PropsWithChildren<{
|
||||
title: string;
|
||||
}>;
|
||||
type CommentsProps = JSX.IntrinsicElements["div"] & {
|
||||
title: string;
|
||||
};
|
||||
|
||||
const Comments = ({ title, className, ...rest }: CommentsProps) => {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
Reference in New Issue
Block a user