main

mattermost/focalboard

Last updated at: 29/12/2023 09:42

person.tsx

TLDR

This file is a React component that renders a Person property. It imports the PropertyProps type from the types file and the ConfirmPerson component from the same directory. It exports the Person component as the default export.

Classes

Person

This class is a React component that renders a Person property. It takes in the PropertyProps as props and renders the ConfirmPerson component with the showEmptyPlaceholder prop set to true.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import React from 'react'

import {PropertyProps} from '../types'

import ConfirmPerson from './confirmPerson'

const Person = (props: PropertyProps): JSX.Element => {
    return (
        <ConfirmPerson
            {...props}
            showEmptyPlaceholder={true}
        />
    )
}

export default Person