mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
* try editor as preview * add databinding for editor actions and message * add actions, reordering base interactions * add drag and drop ordering for categoriers * category skeleton * fix linting issues * add role list and add button, non-functional * bump packages * add role search prototype * yarn.lock sync * fix lint * remove cfw-emulator bin
26 lines
534 B
TypeScript
26 lines
534 B
TypeScript
import styled, { css } from 'styled-components';
|
|
import { onSmallScreen } from './Breakpoints';
|
|
|
|
const ShowOnSmall = styled.span`
|
|
display: none;
|
|
${onSmallScreen(css`
|
|
display: initial;
|
|
`)}
|
|
`;
|
|
|
|
const ShowOnLarge = styled.span`
|
|
display: initial;
|
|
${onSmallScreen(css`
|
|
display: none;
|
|
`)}
|
|
`;
|
|
|
|
export const BreakpointText = (props: { small: string; large: string }) => {
|
|
const { small, large } = props;
|
|
return (
|
|
<>
|
|
<ShowOnSmall>{small}</ShowOnSmall>
|
|
<ShowOnLarge>{large}</ShowOnLarge>
|
|
</>
|
|
);
|
|
};
|