import { DatePicker, TextField } from "@fluentui/react"; import React, { FunctionComponent } from "react"; export interface TableEntityProps { entityValueLabel?: string; entityValuePlaceholder: string; entityValue: string | Date; isEntityTypeDate: boolean; isEntityValueDisable?: boolean; entityTimeValue: string; entityValueType: string; onEntityValueChange: (event: React.FormEvent, newInput?: string) => void; onSelectDate: (date: Date | null | undefined) => void; onEntityTimeValueChange: (event: React.FormEvent, newInput?: string) => void; } export const EntityValue: FunctionComponent = ({ entityValueLabel, entityValuePlaceholder, entityValue, isEntityTypeDate, entityTimeValue, entityValueType, onEntityValueChange, onSelectDate, isEntityValueDisable, onEntityTimeValueChange, }: TableEntityProps): JSX.Element => { if (isEntityTypeDate) { return ( <> ); } return ( ); };