import { PersonChip } from '@/people/components/PersonChip'; import { RelationPickerHotkeyScope } from '@/ui/relation-picker/types/RelationPickerHotkeyScope'; import { EditableCell } from '@/ui/table/editable-cell/components/EditableCell'; import { useEditableCell } from '@/ui/table/editable-cell/hooks/useEditableCell'; import { Company, User } from '~/generated/graphql'; import { CompanyAccountOwnerPicker } from './CompanyAccountOwnerPicker'; export type CompanyAccountOnwer = Pick & { accountOwner?: Pick | null; }; export type OwnProps = { company: CompanyAccountOnwer; }; export function CompanyAccountOwnerCell({ company }: OwnProps) { const { closeEditableCell } = useEditableCell(); function handleCancel() { closeEditableCell(); } function handleSubmit() { closeEditableCell(); } return ( } nonEditModeContent={ company.accountOwner?.displayName ? ( ) : ( <> ) } /> ); }