// Chakra imports import { As, Flex, Table, Tbody, Text, Th, Thead, Tr, useColorModeValue, Box } from '@chakra-ui/react' import React from 'react' import {NotifyTableRow} from './NotifyTableRow' export interface NotifyTableProps { data: Array<{ id: string name: string description: string logo: As active: boolean }> onSwitchActive: (id: string, active: boolean) => void onEdit: (id: string) => void } export default function NotifyTableCard(props: NotifyTableProps) { const textColor = useColorModeValue('gray.700', 'white') return ( {props.data.map(row => { return ( props.onSwitchActive(row.id, active)} onEdit={() => props.onEdit(row.id)} /> ) })}
Name Description Status
) }