import React, { ReactNode } from "react"; import { List } from "@components/List"; import Button from "@components/ui/Button"; import ConnectIntegration from "./ConnectIntegrations"; import IntegrationListItem from "./IntegrationListItem"; interface Props { calendars: { children?: ReactNode; description: string; imageSrc: string; title: string; type: string; }[]; onChanged: () => void | Promise; } const CalendarsList = (props: Props): JSX.Element => { const { calendars, onChanged } = props; return ( {calendars.map((item) => ( ( )} onOpenChange={onChanged} /> } /> ))} ); }; export default CalendarsList;