mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-13 19:55:26 -04:00
react-twitter-embed ➡️ react-tweet
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useRouter } from "next/router";
|
||||
import Link from "../Link";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import type { ComponentProps } from "react";
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
|
||||
const Title = styled("h1", {
|
||||
marginTop: 0,
|
||||
@@ -19,7 +19,7 @@ const TitleLink = styled(Link, {
|
||||
color: theme.colors.text,
|
||||
});
|
||||
|
||||
export type PageTitleProps = ComponentProps<typeof Title>;
|
||||
export type PageTitleProps = ComponentPropsWithoutRef<typeof Title>;
|
||||
|
||||
const PageTitle = ({ children, ...rest }: PageTitleProps) => {
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user