|
|
@ -3,12 +3,15 @@ import React from 'react';
|
|
|
|
import { trpc } from '~/utils/trpc';
|
|
|
|
import { trpc } from '~/utils/trpc';
|
|
|
|
|
|
|
|
|
|
|
|
function GenerateAnalysis() {
|
|
|
|
function GenerateAnalysis() {
|
|
|
|
const analysis = trpc.useQuery([
|
|
|
|
const analysisMutation = trpc.useMutation(['offers.analysis.generate']);
|
|
|
|
'offers.analysis.generate',
|
|
|
|
|
|
|
|
{ profileId: 'cl98ywtbv0000tx1s4p18eol1' },
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return <div>{JSON.stringify(analysis.data)}</div>;
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{JSON.stringify(
|
|
|
|
|
|
|
|
analysisMutation.mutate({ profileId: 'cl98ywtbv0000tx1s4p18eol1' }),
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default GenerateAnalysis;
|
|
|
|
export default GenerateAnalysis;
|
|
|
|