internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { FunctionComponent } from 'react'
|
||||
import Icon from '../Icon/Icon'
|
||||
import { VaultListingInterface } from '@standardnotes/snjs'
|
||||
|
||||
type Props = {
|
||||
vault: VaultListingInterface
|
||||
}
|
||||
|
||||
const VaultNameBadge: FunctionComponent<Props> = ({ vault }) => {
|
||||
return (
|
||||
<div className={'rounded bg-success py-1 px-1.5 text-danger-contrast'}>
|
||||
<span className="flex items-center" title="Vault name">
|
||||
<Icon ariaLabel="Vault name" type="safe-square" className="mr-1 text-info-contrast" size="medium" />
|
||||
<div className="text-center text-xs font-bold">{vault.name}</div>
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default VaultNameBadge
|
||||
Reference in New Issue
Block a user