mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
30 lines
543 B
TypeScript
30 lines
543 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
export function TextStatus({ intent, children }) {
|
|
return <TextStatusRoot intent={intent}>{children}</TextStatusRoot>;
|
|
}
|
|
|
|
const TextStatusRoot = styled.span`
|
|
${(props) =>
|
|
props.intent === 'warning' &&
|
|
`
|
|
color: #ec5b0a;`}
|
|
|
|
${(props) =>
|
|
props.intent === 'success' &&
|
|
`
|
|
color: #2ba01d;`}
|
|
|
|
${(props) =>
|
|
props.intent === 'none' &&
|
|
`
|
|
color: #777;`}
|
|
|
|
${(props) =>
|
|
props.intent === 'primary' &&
|
|
`
|
|
color: #1652c8;`}
|
|
`;
|