| b69ab31 | | | 1 | /** |
| b69ab31 | | | 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| b69ab31 | | | 3 | * |
| b69ab31 | | | 4 | * This source code is licensed under the MIT license found in the |
| b69ab31 | | | 5 | * LICENSE file in the root directory of this source tree. |
| b69ab31 | | | 6 | */ |
| b69ab31 | | | 7 | |
| b69ab31 | | | 8 | export const Box = (p: React.PropsWithChildren<{as?: 'tr' | 'td'; onClick?: () => unknown}>) => { |
| b69ab31 | | | 9 | if (p.as === 'tr') { |
| b69ab31 | | | 10 | return <tr onClick={p.onClick}>{p.children}</tr>; |
| b69ab31 | | | 11 | } else if (p.as === 'td') { |
| b69ab31 | | | 12 | return <td onClick={p.onClick}>{p.children}</td>; |
| b69ab31 | | | 13 | } |
| b69ab31 | | | 14 | return <div onClick={p.onClick}>{p.children}</div>; |
| b69ab31 | | | 15 | }; |
| b69ab31 | | | 16 | export const Text = (p: React.PropsWithChildren) => <div>{p.children}</div>; |
| b69ab31 | | | 17 | export const BaseStyles = (p: React.PropsWithChildren) => <div>{p.children}</div>; |
| b69ab31 | | | 18 | export const ThemeProvider = (p: React.PropsWithChildren) => <div>{p.children}</div>; |
| b69ab31 | | | 19 | export const IconButton = ({icon: _, ...p}: React.PropsWithChildren & {icon?: unknown}) => ( |
| b69ab31 | | | 20 | <button {...p} /> |
| b69ab31 | | | 21 | ); |
| b69ab31 | | | 22 | export const Tooltip = (p: React.PropsWithChildren) => <div {...p} />; |
| b69ab31 | | | 23 | export const Spinner = () => <div />; |
| b69ab31 | | | 24 | |
| b69ab31 | | | 25 | export function useTheme() { |
| b69ab31 | | | 26 | return {}; |
| b69ab31 | | | 27 | } |