import { useTranslation } from "react-i18next"; import styled, { useTheme } from "styled-components"; import { RawButton } from "../../../Styled/Button"; import Icon, { StyledIcon } from "../../../Styled/Icon"; interface BtnProp { onClick: () => void; } export const CollapseBtn = ({ isCollapsed, onClick }: { isCollapsed: boolean } & BtnProp) => { const { t } = useTranslation(); return ( {isCollapsed ? ( ) : ( )} ); }; export const ExitBtn = ({ onClick }: BtnProp) => { const { t } = useTranslation(); const theme = useTheme(); return ( ); }; export const StoryIcon = styled(StyledIcon).attrs(() => ({ fillColor: "white", opacity: 0.5 }))` &:hover { fill: ${(p) => p.theme.colorPrimary}; } `;