File size: 372 Bytes
a8aec61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { type FC } from 'react'

import { cn } from '@/lib/utils'

import { PARAGRAPH_SIZES } from './constants'
import { type ParagraphProps } from './types'

const Paragraph: FC<ParagraphProps> = ({
  children,
  size = 'default',
  className,
  id
}) => (
  <p id={id} className={cn(PARAGRAPH_SIZES[size], className)}>
    {children}
  </p>
)

export default Paragraph