Bio-based composites from plant based precursors and hydroxyapatite with shape-memory capability