1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 17:05:32 -04:00

react-twitter-embed ➡️ react-tweet

This commit is contained in:
2023-09-08 11:47:38 -04:00
parent 61660d9d56
commit 1d8c2eab99
25 changed files with 789 additions and 719 deletions

View File

@@ -1,5 +1,5 @@
import { keyframes, styled } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";
import type { ComponentPropsWithoutRef } from "react";
const BlackBox = styled("div", {
width: "100%",
@@ -31,7 +31,7 @@ const Underscore = styled("span", {
animation: `${keyframes({ "40%": { opacity: 0 } })} 1s step-end infinite`,
});
export type TerminalProps = ComponentProps<typeof BlackBox>;
export type TerminalProps = ComponentPropsWithoutRef<typeof BlackBox>;
// a DOS-style terminal box with dynamic text
const Terminal = ({ children: message, ...rest }: TerminalProps) => {