mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 03:45:53 -05:00
Added a startup command copy button to the server startup page.
---
<img width="807" height="161"
alt="{8878188F-11F7-4EF5-B020-2D5C6AB12B94}"
src="https://github.com/user-attachments/assets/affe9c30-b74d-49a9-b5cb-e4adc121fe98"
/>
22 lines
632 B
TypeScript
22 lines
632 B
TypeScript
import type React from 'react';
|
|
import type { LucideIcon } from 'lucide-react';
|
|
import Card from '@/components/elements/Card';
|
|
|
|
interface Props {
|
|
icon?: LucideIcon;
|
|
title: string | React.ReactNode;
|
|
actions?: React.ReactNode;
|
|
className?: string;
|
|
contentClassName?: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
/** A `Card` with a header. */
|
|
const TitledGreyBox = ({ icon, title, actions, children, className, contentClassName }: Props) => (
|
|
<Card title={title} icon={icon} actions={actions} className={className} bodyClassName={contentClassName}>
|
|
{children}
|
|
</Card>
|
|
);
|
|
|
|
export default TitledGreyBox;
|