import { Box } from '@mui/material';
import DID from '@arcblock/ux/lib/DID';
import PropTypes from 'prop-types';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function BlockletOwnerInfo({
  owner,
  locale
}) {
  return /*#__PURE__*/_jsxs(Box, {
    sx: {
      display: 'flex',
      alignItems: 'center',
      gap: 1
    },
    children: [owner.fullName, owner.did ? /*#__PURE__*/_jsx(DID, {
      sx: {
        lineHeight: 'initial',
        '&::before': {
          content: '"("'
        },
        '&::after': {
          content: '")"'
        }
      },
      did: owner.did,
      compact: true,
      size: 14,
      locale: locale
    }) : null]
  });
}
BlockletOwnerInfo.propTypes = {
  owner: PropTypes.object.isRequired,
  locale: PropTypes.string.isRequired
};