metacubexd/src/components/ConfigTitle.tsx
2023-09-15 23:43:55 +08:00

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>
)