metacubexd/src/components/ConfigTitle.tsx

15 lines
301 B
TypeScript
Raw Normal View History

2023-09-15 23:43:55 +08:00
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>
)