mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 21:55:38 +08:00
15 lines
301 B
TypeScript
15 lines
301 B
TypeScript
import { children, ParentComponent } from 'solid-js'
|
|
|
|
export const ConfigTitle: ParentComponent<{ withDivider?: boolean }> = (
|
|
props,
|
|
) => (
|
|
<div
|
|
class="pb-4 text-lg font-semibold"
|
|
classList={{
|
|
divider: props.withDivider,
|
|
}}
|
|
>
|
|
{children(() => props.children)()}
|
|
</div>
|
|
)
|