Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
Something went wrong. Try again.
1.1 kB · 38 lines
TSX
at strict
1234567891011121314151617181920212223242526272829303132333435363738import { HStack, IconButton } from "@chakra-ui/react";import type {ComponentProps} from "react";import { FaRegSquareMinus, FaRegSquarePlus } from "react-icons/fa6";
export interface ExpandCollapseProps { onClick: (val: boolean) => void, size?: string}
export const ExpandCollapse = (props: ExpandCollapseProps & ComponentProps<typeof HStack>) => { const { onClick, ...rest } = props;
return ( <HStack gap="1" {...rest}> <IconButton aria-label="Collapse All" variant="ghost" size="sm" style={{blockSize: '20px'}} onClick={() => props.onClick(false)} > <FaRegSquareMinus /> </IconButton> <IconButton aria-label="Expand All" variant="ghost" size="sm" style={{blockSize: '20px'}} onClick={() => props.onClick(true)} > <FaRegSquarePlus /> </IconButton> </HStack> )}