2021-11-06 02:38:01 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2022-02-15 04:20:50 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2021-11-06 02:38:01 +08:00
|
|
|
|
|
|
|
const DropdownButton = styled(Button)`
|
|
|
|
${({ state }) => state === 'open' && `
|
|
|
|
@media ${smallOnly} {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
|
|
|
|
${({ state }) => state === 'closed' && `
|
|
|
|
margin: 0;
|
|
|
|
z-index: 3;
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
DropdownButton,
|
|
|
|
};
|