You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
373 B
TypeScript

import type { Component } from 'solid-js'
import Chip from '@suid/material/Chip'
const ThemeBadge: Component<{ theme: string; labelPrefix?: string }> = (props) => {
const label = (): string =>
props.labelPrefix ? `${props.labelPrefix}${props.theme}` : props.theme
return <Chip label={label()} variant="outlined" color="secondary" />
}
export default ThemeBadge