interface Props { propWhichIsArray: { id: ID; // I assume ID is defined elsewhere text: string; }[] } const Component: React.FC<Props> = ({ propWhichIsArray }) => {