import { ActionIcon, Box, Button, Group, Stack, Text } from '@mantine/core'; import { FiCheck, FiEdit, FiTrash } from 'react-icons/fi'; import { actionIconClasses } from 'styles'; function ThemeCard({ handleOpen, handleDeleteTheme, theme, setValue, createTheme }: any) { return ( {theme.name} { createTheme({ method: 'PATCH', endpoint: 'api/themes', body: { ...theme, randomEnabled: !theme.randomEnabled }, }); }} > handleOpen(theme)} > handleDeleteTheme(theme)} > ); } export default ThemeCard;