import {default as Link} from "next/link" import React from "react" import {default as cn} from "classnames" import {default as Image, ImageProps} from "next/future/image" import {default as style} from "./ProjectPanel.module.css" export type ProjectPanelProps = Pick & { href?: string, name: string description: React.ReactNode, } export const ProjectPanel = ({src, href, name, description}: ProjectPanelProps) => { const panel = ( {name}

{name}

{description}

) if(href) { return ( {panel} ) } else { return panel } }