diff --git a/src/components/controls/static-field.tsx b/src/components/controls/static-field.tsx new file mode 100644 index 0000000..d7f94a5 --- /dev/null +++ b/src/components/controls/static-field.tsx @@ -0,0 +1,37 @@ +import React, { FC } from 'react' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { IconDefinition } from '@fortawesome/free-solid-svg-icons' +import { useTheme } from 'src/hooks' + +import FieldLabel from 'src/components/controls/field-label' + +interface Props { + label: string + value?: string + icon?: IconDefinition +} + +const StaticField: FC = ({ label, value, icon }) => { + const theme = useTheme() + return ( +
+ {label} +
+ {icon && +
+ +
+ } +
+ +
+
+
+ ) +} + +export default StaticField diff --git a/src/components/level.tsx b/src/components/level.tsx index 1cfd1a1..c749863 100644 --- a/src/components/level.tsx +++ b/src/components/level.tsx @@ -12,7 +12,7 @@ const Level: FC = ({ items }) => { return (