import { Box, Card, CardContent, Stack, TextField, Typography, useTheme } from '@mui/material'; import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'; import ExampleOptions from './ExampleOptions'; import { GetGroupsType } from '@components/options/ToolOptions'; export interface ExampleCardProps { title: string; description: string; sampleText: string; sampleResult: string; sampleOptions: T; changeInputResult: (newOptions: T) => void; getGroups: GetGroupsType; } export default function ExampleCard({ title, description, sampleText, sampleResult, sampleOptions, changeInputResult, getGroups }: ExampleCardProps) { const theme = useTheme(); return ( { changeInputResult(sampleOptions); }} sx={{ bgcolor: theme.palette.background.default, height: '100%', overflow: 'hidden', borderRadius: 2, transition: 'background-color 0.3s ease', cursor: 'pointer', '&:hover': { boxShadow: '12px 9px 11px 2px #b8b9be, -6px -6px 12px #fff' } }} > {title} {description} ); }