// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {Table, proportional} from '@astryxdesign/core/Table'; import type {TableColumn} from '@astryxdesign/core/Table'; import {Card} from '@astryxdesign/core/Card'; import {VStack} from '@astryxdesign/core/Layout'; import {Heading} from '@astryxdesign/core/Text'; interface User extends Record { id: string; name: string; role: string; email: string; } const users: User[] = [ { id: '1', name: 'Alice Johnson', role: 'Engineer', email: 'alice@example.com', }, {id: '2', name: 'Bob Smith', role: 'Designer', email: 'bob@example.com'}, {id: '3', name: 'Charlie Brown', role: 'PM', email: 'charlie@example.com'}, {id: '4', name: 'Diana Prince', role: 'Engineer', email: 'diana@example.com'}, ]; const columns: TableColumn[] = [ {key: 'name', header: 'Name', width: proportional(1)}, {key: 'role', header: 'Role', width: proportional(1)}, {key: 'email', header: 'Email', width: proportional(2)}, ]; export default function TableInCard() { return ( Team Members ); }