mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	 7709d9df20
			
		
	
	
		7709d9df20
		
			
		
	
	
	
	
		
			
			Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			542 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			542 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { ComponentProps, FC } from 'react'
 | |
| import classNames from '@/utils/classnames'
 | |
| 
 | |
| export type PreviewHeaderProps = Omit<ComponentProps<'div'>, 'title'> & {
 | |
|   title: string
 | |
| }
 | |
| 
 | |
| export const PreviewHeader: FC<PreviewHeaderProps> = (props) => {
 | |
|   const { title, className, children, ...rest } = props
 | |
|   return <div
 | |
|     {...rest}
 | |
|     className={classNames(
 | |
|       className,
 | |
|     )}
 | |
|   >
 | |
|     <div
 | |
|       className='system-2xs-semibold-uppercase mb-1 px-1 uppercase text-text-accent'
 | |
|     >
 | |
|       {title}
 | |
|     </div>
 | |
|     {children}
 | |
|   </div>
 | |
| }
 |