import React, { useMemo } from 'react';
import DetailPro from '@/components/DetailPro';
import getcolumns from './columns';

const Basemsg = ({ drawer }) => {
    const columns = useMemo(() => {
        let defcolumn = getcolumns()?.columns ?? [];
        return defcolumn;
    }, []);
    return <DetailPro
        fields={columns}
        detailpath="/lease/umLeaseLedger/detail"
        params={{ id: drawer?.item?.id }}
    />
}
export default Basemsg;