Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/modals/modal-body.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/modals/modal-body.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/modals/modal-body.tsx
-
curl -L -o modal-body.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/modals/modal-body.tsx
503 Bytes
| import React from "react"; | |
| import { cn } from "#/utils/utils"; | |
| interface ModalBodyProps { | |
| testID?: string; | |
| children: React.ReactNode; | |
| className?: React.HTMLProps<HTMLDivElement>["className"]; | |
| } | |
| export function ModalBody({ testID, children, className }: ModalBodyProps) { | |
| return ( | |
| <div | |
| data-testid={testID} | |
| className={cn( | |
| "bg-base-secondary flex flex-col gap-6 items-center w-[384px] p-6 rounded-xl", | |
| className, | |
| )} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| } | |