'use client'; // @mui import Container from '@mui/material/Container'; // routes import { paths } from 'src/routes/paths'; // api import { useGetInvoice } from 'src/api/invoice'; // components import { useSettingsContext } from 'src/components/settings'; import CustomBreadcrumbs from 'src/components/custom-breadcrumbs'; // import InvoiceNewEditForm from '../invoice-new-edit-form'; // ---------------------------------------------------------------------- type Props = { id: string; }; export default function InvoiceEditView({ id }: Props) { const settings = useSettingsContext(); const { currentInvoice } = useGetInvoice({ id }); console.log('currentInvoice', currentInvoice); return ( {currentInvoice && } ); }