Гайз,
есть такое
export const SwitcherThemes: React.FunctionComponent = () => {... } // возвращает массив кнопок (JSX элементов)
TS запарил ругаться
Type '() => JSX.Element[] | Element[] | null' is not assignable to type 'FunctionComponent<{}>'.
Type 'Element[] | Element[] | null' is not assignable to type 'ReactElement<any, any> | null'.
Type 'Element[]' is missing the following properties from type 'ReactElement<any, any>': type, props, key
Есть решение, включить JSX массив в <></> но хотелось бы понять, какую сигнатуру нужно сделать, чтобы можно было сделать так как это допускается в JavaScript ?