mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
re-structure to monorepo.
This commit is contained in:
29
packages/webapp/src/components/TextStatus/index.tsx
Normal file
29
packages/webapp/src/components/TextStatus/index.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
// @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;`}
|
||||
`;
|
||||
Reference in New Issue
Block a user