import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import type { DialogProps } from '@mui/material/Dialog'; import Dialog from '@mui/material/Dialog'; import DialogActions from '@mui/material/DialogActions'; import DialogTitle from '@mui/material/DialogTitle'; import InputAdornment from '@mui/material/InputAdornment'; import TextField from '@mui/material/TextField'; import { Iconify } from 'src/components/iconify'; import { Scrollbar } from 'src/components/scrollbar'; import type { IFileShared } from 'src/types/file'; import { FileManagerInvitedItem } from './file-manager-invited-item'; // ---------------------------------------------------------------------- type Props = DialogProps & { open: boolean; onClose: () => void; inviteEmail?: string; onCopyLink?: () => void; shared?: IFileShared[] | null; onChangeInvite?: (event: React.ChangeEvent) => void; }; export function FileManagerShareDialog({ open, shared, onClose, onCopyLink, inviteEmail, onChangeInvite, ...other }: Props) { const hasShared = shared && !!shared.length; return ( Invite {onChangeInvite && ( ), }, }} sx={{ mb: 2 }} /> )} {hasShared && ( {shared.map((person) => ( ))} )} {onCopyLink && ( )} {onClose && ( )} ); }