/* eslint-disable qwik/no-react-props */ /** @jsxImportSource react */ import { qwikify$ } from "@builder.io/qwik-react"; import { motion } from "framer-motion" import { ReactDisplay } from "@/react/display" // type Props = { // children?: React.ReactElement[] // } const transition = { type: "spring", stiffness: 100, damping: 15, restDelta: 0.001, duration: 0.01, } type Props = { title: string description: string | string[] } export function ReactTitleSection({ title, description }: Props) { return ( <>
{title} {Array.isArray(description) ? description.map((item, index) => { return {item}
}) : description}
) } export const TitleSection = qwikify$(ReactTitleSection)