creates video voice memos from audio clips; with bluesky integration. trill.ptr.pet
at main 572 B view raw
1import { Show, children } from 'solid-js' 2import * as StyledSwitch from './styled/switch' 3 4export interface SwitchProps extends StyledSwitch.RootProps {} 5 6export const Switch = (props: SwitchProps) => { 7 const getChildren = children(() => props.children) 8 9 return ( 10 <StyledSwitch.Root {...props}> 11 <StyledSwitch.Control> 12 <StyledSwitch.Thumb /> 13 </StyledSwitch.Control> 14 <Show when={getChildren()}> 15 <StyledSwitch.Label>{getChildren()}</StyledSwitch.Label> 16 </Show> 17 <StyledSwitch.HiddenInput /> 18 </StyledSwitch.Root> 19 ) 20}