# All files / Dialog/components Content.tsx

0% Statements 0/11
100% Branches 0/0
0% Functions 0/1
0% Lines 0/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20

     import * as React from 'react'
    import { createUseStyles } from '@fluent-ui/styles'
    import { styles } from '../Dialog.styled'
    import { Theme } from '../../styles'
    import { DialogClassProps } from '../Dialog.type'
    import Box from '../../Box'

    export const name = 'DialogContent'

    const useStyles = createUseStyles<Theme, DialogClassProps>(styles, { name })

    const Content: React.FC = (props): React.ReactElement => {
      const classes = useStyles(props)
      return <Box className={classes.content} {...props} />
    }

    Content.displayName = `F${name}`

    export default Content