import { Box, Grid, Stack, Typography } from '@mui/material'; import ExampleCard, { ExampleCardProps } from './ExampleCard'; import React from 'react'; import { GetGroupsType } from '@components/options/ToolOptions'; interface ExampleProps { title: string; subtitle: string; exampleCards: Omit, 'getGroups' | 'changeInputResult'>[]; getGroups: GetGroupsType; changeInputResult: (newOptions: T) => void; } export default function Examples({ title, subtitle, exampleCards, getGroups, changeInputResult }: ExampleProps) { return ( {title} {subtitle} {exampleCards.map((card, index) => ( ))} ); }