mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
35 lines
849 B
TypeScript
35 lines
849 B
TypeScript
import styled from 'styled-components';
|
|
import { Playerbar } from '/@/renderer/features/player';
|
|
import { useGeneralSettings } from '/@/renderer/store/settings.store';
|
|
|
|
interface PlayerbarContainerProps {
|
|
$drawerEffect: boolean;
|
|
}
|
|
|
|
const PlayerbarContainer = styled.footer<PlayerbarContainerProps>`
|
|
z-index: 200;
|
|
grid-area: player;
|
|
background: var(--playerbar-bg);
|
|
transition: background 0.5s;
|
|
|
|
${(props) =>
|
|
props.$drawerEffect &&
|
|
`
|
|
&:hover {
|
|
background: var(--playerbar-bg-active);
|
|
}
|
|
`}
|
|
`;
|
|
|
|
export const PlayerBar = () => {
|
|
const { playerbarOpenDrawer } = useGeneralSettings();
|
|
|
|
return (
|
|
<PlayerbarContainer
|
|
$drawerEffect={playerbarOpenDrawer}
|
|
id="player-bar"
|
|
>
|
|
<Playerbar />
|
|
</PlayerbarContainer>
|
|
);
|
|
};
|