How to access props in Empty Cell

In fact, the variables are passed to the Empty function, but this is not explained in the documentation. I can simply do :

import type { UnitsQuery, UnitsQueryVariables } from 'types/graphql';

export const Empty = ({ societyId }: UnitsQueryVariables) => {
   // ...
}

// Same for Success :
type SuccessProps = CellSuccessProps<UnitsQuery> & UnitsQueryVariables

export const Success = ({ societyId, units }: SuccessProps) => {
   // ...
}
1 Like