mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-19 21:23:28 +01:00
18 lines
471 B
TypeScript
18 lines
471 B
TypeScript
import OS from '../../mios';
|
|
import PostFormWindow from '../views/components/post-form-window.vue';
|
|
import RenoteFormWindow from '../views/components/renote-form-window.vue';
|
|
|
|
export default (os: OS) => opts => {
|
|
const o = opts || {};
|
|
if (o.renote) {
|
|
const vm = os.new(RenoteFormWindow, {
|
|
renote: o.renote
|
|
});
|
|
document.body.appendChild(vm.$el);
|
|
} else {
|
|
const vm = os.new(PostFormWindow, {
|
|
reply: o.reply
|
|
});
|
|
document.body.appendChild(vm.$el);
|
|
}
|
|
};
|