Files
bigcapital/src/utils/styled-components.js
2021-10-27 22:39:45 +02:00

10 lines
234 B
JavaScript

import { css } from 'styled-components';
export const whenRtl = (restCss) => css`
${({ theme }) => theme.dir === 'rtl' && restCss}
`;
export const whenLtr = (restCss) => css`
${({ theme }) => !theme.dir === 'ltr' && restCss}
`;