Download frontend/src/shared/components/data-table-shell.tsx from li2895/li: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/li2895/li/resolve/main/frontend/src/shared/components/data-table-shell.tsx
- Command line
-
hf download hf://spaces/li2895/li/frontend/src/shared/components/data-table-shell.tsx
-
curl -L -o data-table-shell.tsx https://huggingface.co/spaces/li2895/li/resolve/main/frontend/src/shared/components/data-table-shell.tsx
711 Bytes
| import type { ReactNode } from "react"; | |
| import { cn } from "@/shared/lib/cn"; | |
| type DataTableShellProps = { | |
| toolbar: ReactNode; | |
| children: ReactNode; | |
| footer?: ReactNode; | |
| className?: string; | |
| }; | |
| export function DataTableShell({ toolbar, children, footer, className }: DataTableShellProps) { | |
| return ( | |
| <section className={cn("flex min-w-0 flex-col gap-4", className)}> | |
| <div className="flex min-h-12 flex-wrap items-center justify-between gap-3 py-2"> | |
| {toolbar} | |
| </div> | |
| <div className="min-w-0"> | |
| {children} | |
| </div> | |
| {footer ? ( | |
| <div className="flex min-h-12 items-center py-2"> | |
| {footer} | |
| </div> | |
| ) : null} | |
| </section> | |
| ); | |
| } | |