feat: question classify node

This commit is contained in:
Joel
2024-02-20 17:28:58 +08:00
parent f14a5c7346
commit c441a848e7
7 changed files with 111 additions and 13 deletions

View File

@ -0,0 +1,27 @@
'use client'
import type { FC } from 'react'
import React from 'react'
type Props = {
title: string
content: string
}
const InfoPanel: FC<Props> = ({
title,
content,
}) => {
return (
<div>
<div className='px-[5px] py-[3px] bg-gray-100 rounded-md'>
<div className='leading-4 text-[10px] font-medium text-gray-500 uppercase'>
{title}
</div>
<div className='leading-4 text-xs font-normal text-gray-700'>
{content}
</div>
</div>
</div>
)
}
export default React.memo(InfoPanel)