mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 03:17:56 -05:00
15 lines
378 B
TypeScript
15 lines
378 B
TypeScript
import React from 'react';
|
|
import { useSkin } from '@/themes/skins';
|
|
|
|
export interface CodeProps {
|
|
dark?: boolean | undefined;
|
|
className?: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function Code({ dark, className, children }: CodeProps) {
|
|
const ui = useSkin('Code', { dark: !!dark });
|
|
|
|
return <code {...ui('root', className)}>{children}</code>;
|
|
}
|