2025-08-27 13:05:51 +03:00
|
|
|
import { useTriliumEvents } from "../react/hooks";
|
2025-08-23 11:44:51 +03:00
|
|
|
import AttributeEditor from "./components/AttributeEditor";
|
|
|
|
|
import { TabContext } from "./ribbon-interface";
|
|
|
|
|
|
2025-08-27 13:05:51 +03:00
|
|
|
export default function OwnedAttributesTab({ note, hidden, activate, ...restProps }: TabContext) {
|
|
|
|
|
useTriliumEvents([ "addNewLabel", "addNewRelation" ], activate);
|
|
|
|
|
|
2025-08-23 11:44:51 +03:00
|
|
|
return (
|
|
|
|
|
<div className="attribute-list">
|
2025-08-23 20:35:19 +03:00
|
|
|
{ note && (
|
2025-08-27 13:05:51 +03:00
|
|
|
<AttributeEditor note={note} {...restProps} hidden={hidden} />
|
2025-08-23 20:35:19 +03:00
|
|
|
)}
|
2025-08-23 11:44:51 +03:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|