// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {Table, proportional, pixel} from '@astryxdesign/core/Table'; import {Card} from '@astryxdesign/core/Card'; import type {TableColumn} from '@astryxdesign/core/Table'; interface User extends Record { id: string; name: string; email: string; role: string; age: number; } const users: User[] = [ { id: '1', name: 'Alice Johnson', email: 'alice@example.com', role: 'Engineer', age: 30, }, { id: '2', name: 'Bob Smith', email: 'bob@example.com', role: 'Designer', age: 25, }, { id: '3', name: 'Charlie Brown', email: 'charlie@example.com', role: 'PM', age: 35, }, ]; const columns: TableColumn[] = [ {key: 'name', header: 'Name', width: proportional(1)}, {key: 'email', header: 'Email', width: proportional(2)}, {key: 'role', header: 'Role', width: proportional(1)}, {key: 'age', header: 'Age', width: pixel(80)}, ]; export default function TableShowcase() { return ( ); }